nerry Posted August 19, 2010 Posted August 19, 2010 Hi Friends, I just finished install oscommerce through cpanel-fantastico. After that i just try to change the template. I've download free template from http://www.freetemplatesonline.com Then, I upload content from 'osc' folder (new template) into 'shop' folder thru ftp www.nicheniaga.com/shop FTP success then I try to open my site, www.nicheniaga.com/shop, cannot open and one error shows FATAL ERROR: register_globals is disabled in php.ini, please enable it! I need advise from you all. TQ -Nerry-
artful Posted August 19, 2010 Posted August 19, 2010 Hi Friends, I just finished install oscommerce through cpanel-fantastico. After that i just try to change the template. I've download free template from http://www.freetemplatesonline.com Then, I upload content from 'osc' folder (new template) into 'shop' folder thru ftp www.nicheniaga.com/shop FTP success then I try to open my site, www.nicheniaga.com/shop, cannot open and one error shows FATAL ERROR: register_globals is disabled in php.ini, please enable it! I need advise from you all. TQ -Nerry- Hi Nerry, If you do not have access to your server php.ini - First try going into catalog/includes/application_top.php and comment out this line / // check support for register_globals if (function_exists('ini_get') && (ini_get('register_globals') == false) && (PHP_VERSION < 4.3) ) { exit('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. Please use PHP 4.3+ if register_globals cannot be enabled on the server.'); } so that it looks like this : // check support for register_globals // if (function_exists('ini_get') && (ini_get('register_globals') == false) && (PHP_VERSION < 4.3) ) { // exit('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. Please use PHP 4.3+ if register_globals cannot be enabled on the server.'); // } If that does not work and if your web hoster does not allow commands invan htaccess file do this: -make a file named php.ini and put this in it : register_globals = on Then upload it to all your files needing globals on, although it is really not a good thing to have them on! Barbara
nerry Posted August 19, 2010 Author Posted August 19, 2010 Hi Nerry, If you do not have access to your server php.ini - First try going into catalog/includes/application_top.php and comment out this line / // check support for register_globals if (function_exists('ini_get') && (ini_get('register_globals') == false) && (PHP_VERSION < 4.3) ) { exit('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. Please use PHP 4.3+ if register_globals cannot be enabled on the server.'); } so that it looks like this : // check support for register_globals // if (function_exists('ini_get') && (ini_get('register_globals') == false) && (PHP_VERSION < 4.3) ) { // exit('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. Please use PHP 4.3+ if register_globals cannot be enabled on the server.'); // } If that does not work and if your web hoster does not allow commands invan htaccess file do this: -make a file named php.ini and put this in it : register_globals = on Then upload it to all your files needing globals on, although it is really not a good thing to have them on! Barbara Barbara, Thanks for your reply But I still dont get how to go to (catalog/includes/application_top.php) TQ
FIMBLE Posted August 19, 2010 Posted August 19, 2010 You will need to edit this file via either an FTP client or via your Web site hosting control panel File manager. You can use a program like FileZilla which is free. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
MrPhil Posted August 19, 2010 Posted August 19, 2010 The first thing to do is to determine why your store is demanding that register global variables be enabled. Either you installed a very old version of osC (2.2 MS2 or earlier), or the template is quite out of date. If the latter, I would demand that the template author supply an up to date version that doesn't use register global variables. In the end, you should be using recent (up to date) code that doesn't need register global variables. That function is being removed from PHP, so you might as well get off on the right foot and not start using them, only to be rudely surprised a few months or a year down the line when a new PHP version is installed that won't let you use them at all. In the meantime, if you need to buy some time, most installations will let you turn register globals "on" in a "php.ini" file. Talk to your host about whether they allow it, and what the exact magical incantations are.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.