Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR: register_globals is disabled in php.ini


sfoust

Recommended Posts

I've just setup a fresh version of 2.2MS2 and am getting the error message,

 

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

 

even though Server Info says it's on.

 

Also, if I just press the refresh button, usually the page re-displays normally.

 

Any ideas?

Anyone else having this problem?

 

Scott.

Link to comment
Share on other sites

When I went to add "php_value register_globals 1" as you suggested, I found that there is already a line like that commented out (common problem it seems).

 

I notice that there is a line right above it that reads, "php_value session.use_trans_sid 0". Any idea what that command trys to fix? I'm wondering if I should un-comment it as well or leave well enough alone.

Link to comment
Share on other sites

When connecting to the host can you access this location:

 

/usr/local/lib/php.ini

 

If you can, change the register_globals to On (making sure it appears as On and NOT on). This can be done by downloading the file in ASCII format and open it in Notepad. Ammend the line which is approximately one third of the way down under the heading "Data Handling", then save and upload.

 

This should resolve the problem, if not contact the hosting company and ask then if they would do this for you. Most are more than happy to assist.

Link to comment
Share on other sites

snash0902:

 

Just looked. register_globals is already set to On (not on).

Thanks for trying. Sence editing the .htaccess file, as per Tomatito's instructions, I havn't had the problem (knock on wood).

 

 

The_Bear :

 

Sorry about that. Wasn't trying to drum up business for them.

Link to comment
Share on other sites

Anyone have any ideas how to resolve the exact same problem on a server that is running Microsoft-IIS, rather than Apache?

 

IIS doesn't support the Apache .htaccess file.

Link to comment
Share on other sites

Ok, as you mentioned, it is set to On in php.ini.

Now when was this set to On??

The machine, or at least the services, needs to be restarted for the change to take effect.

 

Just a thought! :D

Link to comment
Share on other sites

Emerson:

 

It was set to 'On' by the hosting company. The date on the file is 10/14/2000. I can only assume that the server has been restarted since then. ;)

 

But thanks for following up.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...