Page 1 of 1

After posting error messages

Posted: Wed Apr 09, 2008 8:42 am
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.

Posted: Wed Apr 09, 2008 11:31 am
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

I emailed my host

Posted: Wed Apr 09, 2008 2:10 pm
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.

Posted: Wed Apr 09, 2008 3:21 pm
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 ?> )

No security image

Posted: Thu Apr 10, 2008 1:29 am
by dsfalo
looks like it works but the security image wont show. But gd_test.php works.

Posted: Thu Apr 10, 2008 11:46 am
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.