Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sessions.php warnings on install


Guest

Recommended Posts

Hi folks,

 

Have just installed 2.2 RC1 and I am receiving the following on all normal catalogue pages

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access owned by uid 0 in .../httpdocs/catalog/includes/functions/sessions.php on line 162

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at .../httpdocs/catalog/includes/functions/sessions.php:162) in .../httpdocs/catalog/includes/functions/sessions.php on line 97

 

and when trying to get to catalog/admin/ I get

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access owned by uid 0 in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 161

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 97

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 97

Warning: Cannot modify header information - headers already sent by (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/general.php on line 22

 

I have cleared any white spaces from the sessions.php (to remove a previous error) already.

 

Could anyone advise.

 

Thanks

Link to comment
Share on other sites

Hi folks,

 

Have just installed 2.2 RC1 and I am receiving the following on all normal catalogue pages

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access owned by uid 0 in .../httpdocs/catalog/includes/functions/sessions.php on line 162

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at .../httpdocs/catalog/includes/functions/sessions.php:162) in .../httpdocs/catalog/includes/functions/sessions.php on line 97

 

and when trying to get to catalog/admin/ I get

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access owned by uid 0 in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 161

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 97

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 97

Warning: Cannot modify header information - headers already sent by (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/general.php on line 22

 

I have cleared any white spaces from the sessions.php (to remove a previous error) already.

 

Could anyone advise.

 

Thanks

 

Well, I had a somewhat similar problem when I was first installing oscommece 2.2RC1

 

I needed to find a file from the CONTRIBUTION's section called "catalognoglobals" and then go and edit the /configure.php and /sessions.php files as described below(instrutions follow with the contribution)

 

Coping the contribution over to your server and editing these 'sessions' parameters made it all work well for me,

I hope that this helps to work for you too.

 

-------------------------------------------------------------------------------------------------------------------------------------------

"Warning: session_save_path() [function.session-save-path]: SAFE MODE"

-------------------------------------------------------------------------------------------------------------------------------------------

 

1) In catalog/includes/configure.php ensure that the last line is set to

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

2) In catalog/includes/functions/sessions.php find:

 

function tep_session_save_path($path = '') {

if (!empty($path)) {

return session_save_path($path);

} else {

return session_save_path();

}

}

 

Change to:

 

function tep_session_save_path($path = '') {

if (STORE_SESSIONS != 'mysql') { // added this line to turn off this checking if storing session info in db

if (!empty($path)) {

return session_save_path($path);

} else {

return session_save_path();

}

}

}

 

You can also apply the same fix to the admin section.

 

1) In catalog/admin/includes/configure.php ensure that the last line is set to

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

2) In catalog/admin/includes/functions/sessions.php find:

 

function tep_session_save_path($path = '') {

if ($path != '') {

return session_save_path($path);

} else {

return session_save_path();

}

}

 

Change to:

 

function tep_session_save_path($path = '') {

if (STORE_SESSIONS != 'mysql') { // added this line to turn off this checking if storing session info in db

if ($path != '') {

return session_save_path($path);

} else {

return session_save_path();

}

}

}

Link to comment
Share on other sites

Thanks for that.

 

I couldn't find the contrib, but amended the files. Still no joy, so I uploaded the install dir again and did a fresh install.

 

Now works fine.

 

Thank you for your time and response

Link to comment
Share on other sites

no joy, so I uploaded the install dir again and did a fresh install.

 

Now works fine.

I am glad that things ended up working out for you.

 

Sorry that my information didn't help this case. I ended up renaming the unzipped patch on my computer -

I couldn't find the contrib
If ANYBODY needs this help, I found the correct contrubution page - http://addons.oscommerce.com/info/2097

(make sure to read the authors header information from Sept 25, 2007 - it states to use the original V1.5 patch from Sept 05, 2006), Easy instructions are packaged in the file.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...

Archived

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

×
×
  • Create New...