Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

register globals error


Guest

Recommended Posts

I keep getting this message and I'm not sure why. Could someone please tell me how to fix it.

 

Thank you.

 

 

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 /srv/vhosts/*/httpdocs/oscommerce-2.2ms2/catalog/includes/functions/sessions.php on line 106

Link to comment
Share on other sites

Hello, I was wondering if someone can help me with this error. I log into my site and at the bottom I receive this error message:

 

 

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 /srv/vhosts/*/httpdocs/oscommerce-2.2ms2/catalog/includes/functions/sessions.php on line 106

 

 

 

when I click on anything I then get the following two error messages:

 

 

 

Warning: main(includes/languages//product_info.php): failed to open stream: No such file or directory in /srv/vhosts/*/httpdocs/oscommerce-2.2ms2/catalog/product_info.php on line 15

 

Warning: main(includes/languages//product_info.php): failed to open stream: No such file or directory in /srv/vhosts/*/httpdocs/oscommerce-2.2ms2/catalog/product_info.php on line 15

 

Fatal error: main(): Failed opening required 'includes/languages//product_info.php' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/vhosts/*/httpdocs/oscommerce-2.2ms2/catalog/product_info.php on line 15

 

 

 

Warning: main(includes/languages//index.php): failed to open stream: No such file or directory in /srv/vhosts/*/httpdocs/oscommerce-2.2ms2/catalog/index.php on line 33

 

Warning: main(includes/languages//index.php): failed to open stream: No such file or directory in /srv/vhosts/*/httpdocs/oscommerce-2.2ms2/catalog/index.php on line 33

 

Fatal error: main(): Failed opening required 'includes/languages//index.php' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/vhosts/*/httpdocs/oscommerce-2.2ms2/catalog/index.php on line 33

 

 

I have been searching for two days to try and figure it out and can't seem to find anything that helps. I have looked in the files but I am not sure how to tell what the line numbers are.

 

If anyone can help me please.

 

Thank you.

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
I am getting the same message... Any ideas?

 

Hey guys

 

Make a .htaccess file and type "php_flag session.bug_compat_warn off".

 

Then upload this to your store directory.

 

This should get rid of that error message.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...