Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error message on index.php page


Groshko

Recommended Posts

Can somebody tell me what this means, and how to avoid it.

 

this message appears at the bottom of the store index.php page.

 

 

Warning: session_write_close(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in /var/www/vhosts/mysite.com.au/httpdocs/includes/functions/sessions.php on line 106

 

 

Thanks :D

Link to comment
Share on other sites

Actually those warning settings are in php.ini. If you have access to a local php.ini then you can locate them and set the warnings to off.

 

This is the code referred to in includes/functions/general.php

 

function tep_session_close() {
if (PHP_VERSION >= '4.0.4') {
  return session_write_close();
} elseif (function_exists('session_close')) {
  return session_close();
}
 }

 

You could edit it to something like this:

 

function tep_session_close() {
if (function_exists('session_close')) {
  return session_close();
}
 }

 

Not sure if the opening and closing curly backets are correct, but you can give it a try - getting too close to Christmas for constructive coding!

 

Vger

Link to comment
Share on other sites

Thanks for the response,

 

 

My web host won't allow me to change the php.ini for security reasons.

 

If I just changed the code in general.php so that i don't receive the message, but still have this error, what things should i be worried about.

 

Do you know what disadvantages lie when leaving this alone?

 

 

Groshko

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...