Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

3 errors in header: session_save_path() and session_start()


reyna12

Recommended Posts

Posted

I am doing a design for the shopping card, i have know great knowledge of the coding of the script but i know enough to be able to code new designs, modify it etc...

 

Now i have not touched it but would like to fix it for them,

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid/gid is 126776/126776 is not allowed to access owned by uid/gid 0/0 in /hsphere/local/home/philip/disctown.se/includes/functions/sessions.php on line 118

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /hsphere/local/home/philip/disctown.se/includes/functions/sessions.php:118) in /hsphere/local/home/philip/disctown.se/includes/functions/sessions.php on line 67

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/philip/disctown.se/includes/functions/sessions.php:118) in /hsphere/local/home/philip/disctown.se/includes/functions/sessions.php on line 67

 

URL: http://www.disctown.se/

Posted

The lasttwo errors are cause dby the first, so fix that and you are okay.

 

The first error is caused by PHP being run in Safe Mode by the hosting company. Safe Mode ignores the fact that you may be storing sessions in the database and still expects a valid pathway to a 'tmp' folder to store sessions in. It won't accept a short pathway, as in /tmp/, and requires the full pathway e.g. /hsphere/local/home/philip/disctown.se/tmp/

 

So, in your osC admin panel, under Configuration --> Sessions enter the root pathway plus the name of a 'tmp' or 'temp' folder. Create that folder in the root of your domain (even if you are storing sessions in the database).

 

The errors should now go away.

 

Vger

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...