Spekkio Posted January 7, 2005 Posted January 7, 2005 This is the error I received out of the blue: FATAL ERROR: register_globals is disabled in php.ini, please enable it! I couldn't access any page of my site! >_< I was just updating the links on my site using the tep_href_link function. I've been doing this for the past couple of days and haven't received this error, so I don't think changing the links is my problem. Anyways, I looked online and found the following solution: In application_top.php find: // 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!'); } and change it to: if (!empty($HTTP_GET_VARS)) { extract($HTTP_GET_VARS); } if (!empty($HTTP_POST_VARS)) { extract($HTTP_POST_VARS); } if (!empty($HTTP_SERVER_VARS)) { extract($HTTP_SERVER_VARS); } Now I can access every page on my site via typing in the URL directly, but none of the links work. <_< Any ideas? Any help would be greatly appreciated. Thanks, ~Nate B.
Sleeping Posted January 7, 2005 Posted January 7, 2005 Either turn register_globals back on, or install the Register Globals contribution. After three days without programming, life becomes meaningless. -- The Tao of Programming
Recommended Posts
Archived
This topic is now archived and is closed to further replies.