jonswaino Posted October 20, 2008 Share Posted October 20, 2008 Hi, Recently something happened with the host and our website went down. All that was displayed was the dreaded Register_globals must be turned on error. However even when following the advice about using PHP.ini and .htaccess with the flag set does not fix the problem. I've tried putting a patch which removes the requirement to have the register globals set. But part of that fix is to comment out the test on the register globals. Instead I get the error below: Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in E:\domains\l\lazykate.net\user\htdocs\catalog\includes\application_top.php on line 138 Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.;C:\php5\pear') in E:\domains\l\lazykate.net\user\htdocs\catalog\includes\application_top.php on line 138 Warning: require(includes/functions/localization.php) [function.require]: failed to open stream: No such file or directory in E:\domains\l\lazykate.net\user\htdocs\catalog\includes\application_top.php on line 142 Fatal error: require() [function.require]: Failed opening required 'includes/functions/localization.php' (include_path='.;C:\php5\pear') in E:\domains\l\lazykate.net\user\htdocs\catalog\includes\application_top.php on line 142 Can anyone help me with this? I'm an ASP.NET developer by trade, but this PHP has give me a headache. I've noticed that the error on finding the following file: include(includes/languages/english/ will obviously fail. The file tried to be included from within Application_top.php using the following code: require(DIR_WS_LANGUAGES . $language . '.php'); $current_page = basename($PHP_SELF); if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) { include(DIR_WS_LANGUAGES . $language . '/' . $current_page); } What is happening is that the $language variable is set because we can see 'english' in the above path. But $current_page is not being set to $PHP_SELF. It seems that maybe something is really broken now, register_globals and also this problem. Here is a link to the PHP info of the site Any help greatly appreciated. Link to comment Share on other sites More sharing options...
ktshannon Posted October 20, 2008 Share Posted October 20, 2008 try $_SERVER['PHP SELF'] Link to comment Share on other sites More sharing options...
jonswaino Posted October 20, 2008 Author Share Posted October 20, 2008 try $_SERVER['PHP SELF'] Just tried that and now back to the old error: Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. Any ideas? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.