desertrose61 Posted December 26, 2005 Share Posted December 26, 2005 when I try to install the oscommerce ı mett that error FATAL ERROR: register_globals is disabled in php.ini, please enable it! so ;I changed register_globals to on in php.ini file .But I face wiith the same error again . to prove without doubt if register_globals is on or off .I used simple script to test for the problem <?php echo "register_globals: ". ini_get('register_globals') ."<br />\n"; echo "teststring: ".$teststring."<br />\n"; echo "\$_GET['teststring']: ".$_GET['teststring']."<br />\n"; ?> and When run it web browser as phptest.php?teststring=testme register_globals: teststring: $_GET['teststring']: testme I get this result which sound register_globals is off . with which other ways I can adjust register_globals to on Thanx Link to comment Share on other sites More sharing options...
bobg7 Posted December 26, 2005 Share Posted December 26, 2005 did you stop/start the server after making the change? Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going. Link to comment Share on other sites More sharing options...
heydella Posted December 30, 2005 Share Posted December 30, 2005 Hi.. I also ran into the problem of "Fatal Error: register_globals is disabled in php.ini, please enable it!" I asked my friendly tech at Hostasaurus, who told me that I needed to open the .htaccess file and to uncomment the last four lines of that file which look like this by default: #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule> Just make it: <IfModule mod_php4.c> php_value session.use_trans_sid 0 php_value register_globals 1 </IfModule> THEN..... I uploaded the file, but still it wouldn't work, so my friendly tech person said to remove the two parts surrounding the directives at the bottom of the .htaccess file making it look like this: php_value session.use_trans_sid 0 php_value register_globals 1 NOW... it works! I haven't a clue whether this will work for anyone else, but sounds like it's worth a try. Della Link to comment Share on other sites More sharing options...
mattress Posted January 5, 2006 Share Posted January 5, 2006 when I try to install the oscommerce ı mett that errorFATAL ERROR: register_globals is disabled in php.ini, please enable it! so ;I changed register_globals to on in php.ini file .But I face wiith the same error again . to prove without doubt if register_globals is on or off .I used simple script to test for the problem you can also check by invoking phpinfo(); if you're running php on IIS then remember that the php.ini file that matters is not in the php directory but in your windows system directory. I had this same problem stumping me for a while until I did a search on my server for php.ini and found the correct php.ini file. Hope this helps. Link to comment Share on other sites More sharing options...
Eliseow Posted September 17, 2010 Share Posted September 17, 2010 Hi.. I also ran into the problem of "Fatal Error: register_globals is disabled in php.ini, please enable it!" I asked my friendly tech at Hostasaurus, who told me that I needed to open the .htaccess file and to uncomment the last four lines of that file which look like this by default: #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule> Just make it: <IfModule mod_php4.c> php_value session.use_trans_sid 0 php_value register_globals 1 </IfModule> THEN..... I uploaded the file, but still it wouldn't work, so my friendly tech person said to remove the two parts surrounding the directives at the bottom of the .htaccess file making it look like this: php_value session.use_trans_sid 0 php_value register_globals 1 NOW... it works! I haven't a clue whether this will work for anyone else, but sounds like it's worth a try. Della I have tried this, but I got Internal Server Error http://yaku.es/oscommerce/ how can I fix that? Link to comment Share on other sites More sharing options...
MrPhil Posted September 18, 2010 Share Posted September 18, 2010 In most systems, you must put such PHP directives/settings in php.ini, not .htaccess, or you will get a 500 (Internal Server) error. Talk to your host about how to set up a php.ini file. By the way, if your osC (or template) requires register global variables to be "on", you're using a very out of date osC or template. It's been years since osC used register global variables. If you recently bought a store template that requires register global variables, you should demand your money back and find something less paleolithic. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.