After posting error messages

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
dsfalo
Posts: 3
Joined: Wed Apr 09, 2008 7:19 am

After posting error messages

Post by dsfalo »

Script URL:http://www.pacificgolf.com/cp/mboard/mboard.php
Version of script:1.3
Hosting company:gate.com
URL of phpinfo.php:http://www.pacificgolf.com/cp/mboard/phpinfo.php
URL of session_test.php:http://www.pacificgolf.com/cp/mboard/session_test.php
What terms did you try when SEARCHING for a solution: Warning session, error codes, script setting

Write your message below:
When you first go to the message board everything looks good until you try to post once you finish inputting your post and submit it you get the following message: Warning: session_start(): open(/tmp/php-ses/sess_138c55f9ff82dc48b9f4f9c0d2ce28ef, O_RDWR) failed: Permission denied (13) in /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php on line 45

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php:45) in /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php on line 45

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php:45) in /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php:45) in /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php on line 737

Warning: Cannot modify header information - headers already sent by (output started at /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php:45) in /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php on line 738

Warning: Cannot modify header information - headers already sent by (output started at /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php:45) in /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php on line 739

Warning: Cannot modify header information - headers already sent by (output started at /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php:45) in /nfs/cust/0/1/9/pacifi58/cp/mboard/mboard.php on line 740

Also smileys do not work as well. Thanks for any help you can give.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You will have to contact your host and ask them to fix PHP sessions because the tmp folder is not writable. You can give them this URL as a reference:
http://www.pacificgolf.com/cp/mboard/session_test.php
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
dsfalo
Posts: 3
Joined: Wed Apr 09, 2008 7:19 am

I emailed my host

Post by dsfalo »

Thanks for the help kleman. I emailed my host and this is what I got.

Since Gate.com employs multiple servers in the web hosting cluster, customers cannot use the default PHP session path in /tmp. Instead, sessions will need to be saved in each account’s home directory.



To properly configure your session path, you will want to create a folder in your /web folder called ‘tmp’ (You can use any folder name you wish. For this example, we will use ‘tmp’). Log into your Gate.com Control Panel, and select the ‘Perl Checker’ utility from the Tools menu. Near the bottom of this page, you will see a section that looks similar to this:





Notice the line that reads “Absolute Path To Root.” You can determine your session_save_path by appending the folder name that you just created, ‘tmp’ in this example, to the end of the “Absolute Path to Root.” Be sure to include the appropriate slashes (/) and enclose the entire line in single quotes.

Example:



/nfs/cust/8/73/26/462378/web



becomes



'/nfs/cust/8/73/26/462378/web/tmp/'



Finally, the entire line of PHP code will read:



session_save_path ('/nfs/cust/8/73/26/462378/web/tmp/');



This line must appear on every PHP page, and it must appear before your session_start line.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Well, then create that folder and you can add
session_save_path ('/nfs/cust/8/73/26/462378/web/tmp/');
to the last line of the settings.php file (before ?> )
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
dsfalo
Posts: 3
Joined: Wed Apr 09, 2008 7:19 am

No security image

Post by dsfalo »

looks like it works but the security image wont show. But gd_test.php works.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Add

Code: Select all

session_save_path ('/nfs/cust/8/73/26/462378/web/tmp/');
also to print_sec_img.php file, just before this:

Code: Select all

session_start();
That should do the trick.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Locked