Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR: register_globals is disabled in php.ini


riff19

Recommended Posts

Guys, I'm running my own apache/mysql server to process/view my live OScommerce PHP site on my home system, everything is working right...

 

BUT when I try to view/process live PHP data in IE or in Dreamweaver MX, I get

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

 

It is enabled! I tried setting this value to "Off" and back to "On" a bunch of times...has anyone seen this error or have a workaround for it? Please help!!

Link to comment
Share on other sites

in the includes directory (of the catalo / admin)

file Name is: application_top.php

You have to remove this lines:

 

// Check if register_globals is enabled.

// Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized.

if (function_exists('ini_get')) {

ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');

}

Link to comment
Share on other sites

  • 2 weeks later...

Check phpinfo() and see what the location is for your php.ini file and see if it matches the one you are editing. The default is in /etc/.

 

If phpinfo() points you to /etc and there is no php.ini there. Create it and just add the line below:

 

register_globals=On

 

That will use all the default settings except for the ones you specify in that file.

 

~MeanChevelle

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...