Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

session_write_close error


lodestone

Recommended Posts

I have recently become plagued by this error:

 

Warning: session_write_close() [function.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 . . .catalog/includes/functions/sessions.php on line 157

 

However, to my knowledge I do not have the register_globals contrib installed. What I do have is a host that recently upgraded its PHP from 4.2.3 to 5.2.6. Suddenly, this error appears.

 

I'm no coder but going to the file in question, there is no line 157. There are the following lines about a dozen from the top:

 

if ( (PHP_VERSION >= 4.3) && ((bool)ini_get('register_globals') == false) ) {
   @ini_set('session.bug_compat_42', 0);
   @ini_set('session.bug_compat_warn', 0);

 

I set session.bug_compat_42 from 1 to 0, as shown, to no effect.

 

Help is most welcome so I can put oscommerce into production.

 

Thanks.

 

--Allen

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...