craigkendall Posted July 22, 2006 Posted July 22, 2006 The other day my host restored my site after they had an issue. When my site was back up I was getting the message: FATAL ERROR: register_globals is disabled in php.ini, please enable it! After asking them about this, they placed a php.ini file in my main site directory: We have enabled register_globals for your account. We have put a php.ini file under your home directory and added this line----- root@shared1 [/home/siteremoved/public_html]# cat php.ini register_globals => On Then I found the site seemed to be loading except I was getting at the bottom of my pages the message: Warning: session_write_close(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in /home/khmsite/public_html/store/includes/functions/sessions.php on line 136 I searched the forums here and found something about putting a duplicate copy of the php.ini in the admin folder, which I did. Now I am getting, instead of any content from my site the message: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/khmsite/public_html/store/includes/application_top.php on line 285 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /home/khmsite/public_html/store/includes/application_top.php on line 285 Site is http://www.kathiehillmusic.com and OScommerce is linked in as http://store.kathiemusic.com ANY help GREATLY appreciated!
♥Vger Posted July 22, 2006 Posted July 22, 2006 Okay, what you need to do is to decipher 'host speak' to see what is really happening. When they say they had "issues" you can take this to mean that they were running outdated versions of PHP and/or MySQL etc and got hacked. In the ensuing panic they probably upgraded PHP and/or MySQL or patched them to a higher level, and they also turned Safe Mode to 'On' and set Register Globals to 'Off' in the main php.ini. It's these last two which are causing problems for you now. Plus the fact that their servers are down again - becuse I tried both links and get a "Server cannot be found" error on both of them. Vger
craigkendall Posted July 23, 2006 Author Posted July 23, 2006 It's these last two which are causing problems for you now. Plus the fact that their servers are down again - becuse I tried both links and get a "Server cannot be found" error on both of them. Vger Thanks Vger for the info. The site was down because they forgot to set the dedicated IP address. It should be right now... So, if putting the php.ini in my folder is not enough... what next? Currently, going to the site (around the index.html I put up as a notice) by using http://store.kathiehillmusic.com/index.php on the end I only get the following: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/sitefolderremoved/public_html/store/includes/application_top.php on line 285 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /home/sitefolderremoved/public_html/store/includes/application_top.php on line 285
craigkendall Posted July 23, 2006 Author Posted July 23, 2006 Sad when you reply to your own post... but this is my thinking at this point... the fact that the error says: main(includes/languages/.php) ... it's pretty obvious that something should be between the / and the .php (probably 'english'). Wondering if it has to do with the globals being off or not set right. Am I on the right track?
glitzco Posted July 24, 2006 Posted July 24, 2006 The other day my host restored my site after they had an issue. When my site was back up I was getting the message:After asking them about this, they placed a php.ini file in my main site directory: Then I found the site seemed to be loading except I was getting at the bottom of my pages the message: I searched the forums here and found something about putting a duplicate copy of the php.ini in the admin folder, which I did. Now I am getting, instead of any content from my site the message: Site is http://www.kathiehillmusic.com and OScommerce is linked in as http://store.kathiemusic.com ANY help GREATLY appreciated! i've used ur register globals patch, however i get the following warning messages: Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 32007 is not allowed to access owned by uid 0 in ../includes/functions/sessions.php on line 252 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at ../includes/functions/sessions.php:252) in ../includes/functions/sessions.php on line 98 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at ../includes/functions/sessions.php:252) in ../includes/functions/sessions.php on line 98 Warning: putenv(): Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in ../includes/languages/english.php on line 21 any ideas???
Recommended Posts
Archived
This topic is now archived and is closed to further replies.