Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

registar globals


Guest

Recommended Posts

Hello, I am new to this and can't seem to get this right. I keep getting - FATAL ERROR: register globals is disabled in php.ini. Please enable it. I went and got the contribution for register globals and installed it, but I keep getting the message. When I go into my server information it tells me that it is turned on. I am not sure what I need to do to fix the problem.

 

Jacqueline

Link to comment
Share on other sites

Make sure that you close all windows on your browser then delete all of your Temporary Internet Files and all Offline Content. Then open your site again and see if the error still appears. You may be seeing an old cached version.

 

But sometimes you get this error, even after you have installed the patch files, and the only thing to do then is to comment it out in includes/application_top.php (almost right at the top of the file).

 

//if (function_exists('ini_get')) {

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

//}

 

Vger

Link to comment
Share on other sites

Make sure that you close all windows on your browser then delete all of your Temporary Internet Files and all Offline Content.  Then open your site again and see if the error still appears.  You may be seeing an old cached version.

 

But sometimes you get this error, even after you have installed the patch files, and the only thing to do then is to comment it out in includes/application_top.php (almost right at the top of the file).

 

  //if (function_exists('ini_get')) {

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

//}

 

Vger

 

Thank you. I deleted the files but still get the error message. I will try to change the file. Could you tell me what line in the file I should change it on?

Link to comment
Share on other sites

I've actually shown you the code with the lines commented out (the //'s before each line).

 

Vger

 

Thank you. I did find it and it already has that there, but I am still getting the error message.

Link to comment
Share on other sites

If you did what I advised then you CANNOT have the error message still there - because that is the code which displays the error message, and if it is commented out then no error is displayed.

 

You also cannot have found those lines already commented out.

 

Vger

Link to comment
Share on other sites

  • 11 months later...

Archived

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

×
×
  • Create New...