airuma Posted July 5, 2005 Share Posted July 5, 2005 We JUST checked this yesterday and it said the Register Globals were ON. Today my website is displaying this: FATAL ERROR: register_globals is disabled in php.ini, please enable it! And that is it. Nothing else comes up. My shop is down!! What do I do??? Why did this happen??? Sorry, guys, but I am just a bit frustrated!! Any help would be greatly appreciated. Thanks!! Link to comment Share on other sites More sharing options...
OceanRanch Posted July 5, 2005 Share Posted July 5, 2005 Sounds like your ISP upgraded PHP last night and did not notify you. The default on most new upgrades is Globals off. Contact your host and see if he'll turn them back on. If not see if you can override it via .htaccess files (check with your host on that) or install the oscommerce contribution that allows you to run with Globals turned off. Tom Link to comment Share on other sites More sharing options...
jdlev Posted July 5, 2005 Share Posted July 5, 2005 I had a similar problem, and fixed it by making a file called php.ini, and upping it to the root. This is the code that should be in the file: register_globals=on arg_separator.input = ";&" Try that... and let me know if that fixes your problem. Link to comment Share on other sites More sharing options...
airuma Posted July 5, 2005 Author Share Posted July 5, 2005 I had a similar problem, and fixed it by making a file called php.ini, and upping it to the root. This is the code that should be in the file: register_globals=on arg_separator.input = ";&" Try that... and let me know if that fixes your problem. <{POST_SNAPBACK}> No, didn't work. Are there any other tags that need to go in the file at all? About trying to contact the ISP, that is a problem, because I pig-back my site on my uncle's server and it is set up in Brazil... AND I need to have my uncle get a hold of them since he is the one in the account. So, I'd rather try and fix it if possible before I go to the trouble of getting them all involved. Thanks a bunch for all your help! Link to comment Share on other sites More sharing options...
airuma Posted July 5, 2005 Author Share Posted July 5, 2005 Nevermind :) I think the ISP got some complaints because it is turned back on. Again, thank you for the help, I'll save the info, in case it goes off again. Link to comment Share on other sites More sharing options...
shinobiX Posted July 6, 2005 Share Posted July 6, 2005 We JUST checked this yesterday and it said the Register Globals were ON. Today my website is displaying this: FATAL ERROR: register_globals is disabled in php.ini, please enable it! And that is it. Nothing else comes up. My shop is down!! What do I do??? Why did this happen??? Sorry, guys, but I am just a bit frustrated!! Any help would be greatly appreciated. Thanks!! <{POST_SNAPBACK}> I ran into the same problem, and like some one else here said, looks like they upgraded PHP on the server itself. They recommended that i update ALL my scripts because otherwise the register globals thing is a security risk - basically, my host WILL NOT turn them back on. Here's what they told me to do to get my shop back up (though now it is giving me different errors -- get to that in a minute): "There seem to be several scripts shut down by this. There is a workaround for local register_globals. WE DO NOT RECOMMEND THIS AS A FIX TO YOUR SCRIPT, WE ARE ONLY TELLING YOU ABOUT IT TO TEMPORARILY BRING YOUR SCRIPTS UP SO YOU CAN FIX THE SETTINGS IN THE ADMIN PANELS. Create a .htaccess file in the directory your script runs. In the file put in "php_flag register_globals on" without the "" around it This will allow the script to run with register_globals on while you FIX YOUR SCRIPTS. No script ever should require register_globals, it will open your site up for hack attempts and it is NOT SECURE especially if it is an E-commerce site." Anyway, there's a temporary/partial fix. Since I did this, most of my site came back up, but now when people click on the "Checkout" button, it gives me some crazy long errors: "Warning: Unknown(): open_basedir restriction in effect. File(/home/vulture/public_html/shop/checkout_shipping.php) is not within the allowed path(s): (/home/shinobi/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/netpbm:/usr/local/netpbm/bin:/usr/local/netpbm/lib) in Unknown on line 0" Anyone know what this stuff is all about? HELP! Thanks in advance!! Link to comment Share on other sites More sharing options...
OceanRanch Posted July 6, 2005 Share Posted July 6, 2005 In addition to register_globals being on the php safe_mode has to be off. I don't know of any work-around for safe_mode if your ISP insists that it be set on. Maybe time for a new ISP. HTH Tom Link to comment Share on other sites More sharing options...
shinobiX Posted July 8, 2005 Share Posted July 8, 2005 In addition to register_globals being on the php safe_mode has to be off. I don't know of any work-around for safe_mode if your ISP insists that it be set on. Maybe time for a new ISP. HTH Tom <{POST_SNAPBACK}> Well, talked with the host, and safe mode is off. Still the same errors. I'm starting to think I just need to reinstall OSC for this site from the ground up. Maybe that'll be easier than trying to troubleshoot this wierdness indefinitely. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.