idbeu Posted October 16, 2002 Share Posted October 16, 2002 Hey, I'm getting an error when I try to access admin/admin/index.php FATAL ERROR: register_globals is disabled in php.ini, please enable it! I found php.ini in my PHP directory, and I modified it to look like this: register_globals = On I save it, restarted Apache (and the entire computer), but I still get the same error. What am I doing wrong? Windows XP, Apache 2.0.39, PHP 4.2.2, and MySQL 3.23.51-nt. I should also note that I'm running a website that pulls info from MySQL with PHP; that part works just fine. I'm fairly sure PHP is configured correctly. Also, MySQL has been setup with the correct information as described in oscommerce.sql. I really appreciate the help! -idbeu Link to comment Share on other sites More sharing options...
idbeu Posted October 16, 2002 Author Share Posted October 16, 2002 I created a PHP page that tests the PHP installation, and it tells me that register_globals is set to Off. How do I set it on? I already edited the php.ini file. Link to comment Share on other sites More sharing options...
Jan0815 Posted October 16, 2002 Share Posted October 16, 2002 This has also been addressed before. Searching the forum with the search function saves you a lot of time. This might be related to this part of admin/includes/application_top.php: // 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!'); }[/quote] If register_globals is set to on in php.ini you safely comment out these lines and supress the warning. Things will work after that change HTH You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist. Link to comment Share on other sites More sharing options...
idbeu Posted October 16, 2002 Author Share Posted October 16, 2002 Ah, thanks. That got me started. Now I'm getting a different error whenever I click on any link: Error! Unable to determine the page link! Function used: tep_href_link('', 'selected_box=configuration', 'NONSSL') I also have a few warnings (two on top, and two on bottom), but they don't seem to be hurting anything. I tried searching for this error, and found some solutions; my problem is, how do I get register_globals to be set to ON in php.ini. It's not working, even though I'm setting it (and saved the file). Link to comment Share on other sites More sharing options...
idbeu Posted October 16, 2002 Author Share Posted October 16, 2002 Heh heh, I figured it out (rather, I read posts on newsgroups for two hours on php.net). I was editing the php.ini file in my php directory; but Apache uses the one in C:windows. Aye. Thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.