Guest Posted March 7, 2009 Share Posted March 7, 2009 I just signed on to my admin (ms2.2) and received the following error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! The admin side was fine earlier today when I used it. No changes have been made by me. I checked php.ini and register_globals = On The catalog side seems to still be working. Any ideas? I'm digging around the files for date changes, but nothing so far. here's the site Any help would be appreciated. I've had this site for over three years and periodically get these mystery errors when nothing has been changed by us. I'll contact the host, as well, but they are usually no help. Also, I believe the register_globals were turned on because we had the disabled problem on both sides, some time ago, when they upgraded php (or something). Link to comment Share on other sites More sharing options...
Guest Posted March 7, 2009 Share Posted March 7, 2009 Update: I had to install add on "register globals easy" http://addons.oscommerce.com/info/5729 just on the admin side to get the site back up. This is the question(s): 1) Why did this suddenly quit working with no changes & php.ini register globals on 2) Why was there no problem with the catalog side Any thoughts. I hate to just blindly apply changes without understanding what happened here. I haven't tested all of the admin functionality, yet, to see if it's all working. The basic stuff I need seems to be. Link to comment Share on other sites More sharing options...
spooks Posted March 7, 2009 Share Posted March 7, 2009 I would advise applying that contrib to the catalog side as well, there maybe something that wont be too obvious effected (like checkout) Try to test as fully as you can. I suspect your issue is your host has turned RG off for security, though any decent host would warn you first. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted March 7, 2009 Share Posted March 7, 2009 I would advise applying that contrib to the catalog side as well, there maybe something that wont be too obvious effected (like checkout) Try to test as fully as you can. I suspect your issue is your host has turned RG off for security, though any decent host would warn you first. Thanks for the advise, I will. Link to comment Share on other sites More sharing options...
Guest Posted March 8, 2009 Share Posted March 8, 2009 Update: I have a very old version of Easy Populate and it also quit working. It just bumped through the input process but did not update nor display any messages. I had to apply this patch from http://addons.oscommerce.com/info/2097 problem if u have easy populate installed Ciprian Z 26 May 2005 // WARNING: I'm not sure about this line - maybe this is why 'Upload EP File' doesn't work the following will fix the problem: Quote:"2. The next and biggest problem I had lies in the server I use had "Register globals off" which caused form post and other variables to come back empty. Since my host don't allow register globals to be turned on - this is common on all new PHP versions (PHP 4.2.0 and later). I solved this by adding a couple of lines at the top of easypopulate.php, after the $tempdir declarations: // fix by jb 20040815 set the strings to http post/request, since they don't seem to work on the new server, with register globals=off... $dltype=$_REQUEST['dltype']; $download=$_REQUEST['download']; global $HTTP_POST_FILES; foreach( $HTTP_POST_FILES as $varname => $fileinfo ){ $GLOBALS[$varname] = $fileinfo["tmp_name"]; $GLOBALS[$varname.'_name'] = $fileinfo["name"]; } // end fix jb I hope this will give some people a few days less work on how to get EasyPopulate to work! Regards Jonas " end Quote Read the following topic for more http://www.oscommerce.com/forums/index.php?showtopic=108825&hl= all credits goes Regards Jonas Thank you! Sorry for bumping the thread, but I am trying to keep it updated for anyone else that might be having the problem Link to comment Share on other sites More sharing options...
bobw Posted March 8, 2009 Share Posted March 8, 2009 Or you could simply go to /catalog/.htaccess and /catalog/admin/.htaccess, download and open it in WordPad or similar and look for the line at the bottom that says: # php_value register_globals 1 Remove the #. Save, upload and then refresh your page. All working fine again :rolleyes: Peace... Link to comment Share on other sites More sharing options...
spooks Posted March 8, 2009 Share Posted March 8, 2009 How did you view magdalena's htaccess, or did you look at yours & assume she has same (unlikely) The host can disable RG and prevent you from re-enabling It sounds like there have been updates to php/sql, so you may need to look further. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted March 8, 2009 Share Posted March 8, 2009 How did you view magdalena's htaccess I have the same question. Thanks for your additional comments, spooks. I am doing as much testing as possible, to uncover hidden problems. I had already been upgraded in the sql/php 5+ department (long ago) but I'll continue to chase it. Basically, at this point, I'm in a deadly embrace with the hosting company trying to get them to come clean about any changes they may have made. The are still holding fast to the typical "us? make changes? nah.". Thanks for the input. Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2009 Share Posted March 12, 2009 This is just an update for anyone who cares. The hosting company did finally admit to turning off register_globals. The reason it worked on one side, and not the other, is that they had previously placed a local php.ini file on the catalog side with RG turned on (to get around a previous issue). They did not put a local copy in admin. At any rate, the patches need to be on both sides because of the RG security risk, but I just updated in case anyone else has the same problem. Link to comment Share on other sites More sharing options...
bobw Posted April 21, 2009 Share Posted April 21, 2009 How did you view magdalena's htaccess, or did you look at yours & assume she has same (unlikely) The host can disable RG and prevent you from re-enabling It sounds like there have been updates to php/sql, so you may need to look further. Ummm... I don't go around sniffing out .htaccess files? I basically looked at my own and the error message I got. It's just a possibility that someone else may be able to do the same thing without having to apply a patch. My host is running the latest sql and php versions and was more than willing to help me with my issue and, since I made the changes, I have not had another error of that kind. Peace. Link to comment Share on other sites More sharing options...
MrPhil Posted April 23, 2009 Share Posted April 23, 2009 #php_value register_globals 1 Remove the #. You should be aware that not all hosting services support php_value or php_flag in .htaccess. That's a very old fashioned way of configuring PHP. Most hosts have you put this kind of stuff in a "php.ini" file. Just so no one wonders why this "fix" doesn't work for them, or produces a 500 error. Link to comment Share on other sites More sharing options...
qshdy Posted April 23, 2009 Share Posted April 23, 2009 edit php.ini register_globals = On and restart your apache webservers. [Marktet] Increasing your store sales, a Market Add-ons AskCost Automated Store Feed System API v1.0 It will list your products on AskCost,and deliver targeted customers to your online shop store when they are ready to buy, increasing your store sales. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.