sfoust Posted July 15, 2003 Share Posted July 15, 2003 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 More sharing options...
Tomatito Posted July 17, 2003 Share Posted July 17, 2003 Try adding this line to the .htaccess file in your catalog directory (&admin) php_value register_globals 1 Link to comment Share on other sites More sharing options...
sfoust Posted July 17, 2003 Author Share Posted July 17, 2003 Interesting. Thanks Tomatito. I'll give that a try. Link to comment Share on other sites More sharing options...
sfoust Posted July 17, 2003 Author Share Posted July 17, 2003 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 More sharing options...
snash0902 Posted July 17, 2003 Share Posted July 17, 2003 Have you installed it on your own computer running as a server, or through a hosting company? Link to comment Share on other sites More sharing options...
sfoust Posted July 17, 2003 Author Share Posted July 17, 2003 Hosting company [edited] no commercial posting The_Bear Look here if you need to see the php info: http://www.sfoust.net/phpinfo.php Link to comment Share on other sites More sharing options...
snash0902 Posted July 17, 2003 Share Posted July 17, 2003 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 More sharing options...
sfoust Posted July 17, 2003 Author Share Posted July 17, 2003 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 More sharing options...
richg Posted July 17, 2003 Share Posted July 17, 2003 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 More sharing options...
Guest Posted July 18, 2003 Share Posted July 18, 2003 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 More sharing options...
sfoust Posted July 18, 2003 Author Share Posted July 18, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.