Guest Posted May 23, 2007 Posted May 23, 2007 I've previously installed Cubecart (and it is not as good as i've expected). Uninstalled it using fantastico before I install OSCommerce. I believed I had keyed in the correct stuff into the fields when fantastico prompted me. Checked my directory to find that all the Cubecart related files are removed... I tried logging into my OSCommerce admin and I get this error msg:"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." Someone please help me! Thanks alot.
♥Vger Posted May 23, 2007 Posted May 23, 2007 Server Requirement Error: register_globals is disabled in your PHP configuration -------------------------------------------------------------------------------- You get this message when Register Globals is set to 'off' in a file called php.ini. On a shared server you may have access to a 'local' copy of php.ini, but it's most likely that you won't. If you do then you can edit your local copy to set Register Globals to 'on'. On a shared server you certainly won't have access to the main php.ini file which is for all sites on the server. What can you do if you don't have access to a php.ini file? 1. You can create a file called php.ini and put this inside the file: Register Globals = On 2. You then put this file in the catalog folder (if you use one), and again inside the admin folder, and yet again inside the install folder. 3. If your site is hosted on an Apache server with a Unix or Linux Operating System then you can try turning on Register Globals by the use of a .htaccess file in the folder level where your osCommerce website will be located, with this code in it: php_flag register_globals on and you can also try: php_value register_globals on or you can try using 1 instead of on 4. You cannot use .htaccess files on a Windows server and the use of .htaccess to turn on Register Globals may not even work on an Apache server, because your host may have disallowed it. 5. If all else fails you can install the Register Globals Patch by Richard Bentley which is available from the Contributions section of the osCommerce Forums. This enables the default osCommerce to work with Register Globals set to off in php.ini. 6. Be aware that if you use the Register Globals Patch most Contributions (add-ons) available for osCommerce won't work on your website without modification, because most are not written to work with Register Globals set to off in php.ini Vger
Guest Posted May 23, 2007 Posted May 23, 2007 Server Requirement Error: register_globals is disabled in your PHP configuration-------------------------------------------------------------------------------- You get this message when Register Globals is set to 'off' in a file called php.ini. On a shared server you may have access to a 'local' copy of php.ini, but it's most likely that you won't. If you do then you can edit your local copy to set Register Globals to 'on'. On a shared server you certainly won't have access to the main php.ini file which is for all sites on the server. What can you do if you don't have access to a php.ini file? 1. You can create a file called php.ini and put this inside the file: Register Globals = On 2. You then put this file in the catalog folder (if you use one), and again inside the admin folder, and yet again inside the install folder. 3. If your site is hosted on an Apache server with a Unix or Linux Operating System then you can try turning on Register Globals by the use of a .htaccess file in the folder level where your osCommerce website will be located, with this code in it: php_flag register_globals on and you can also try: php_value register_globals on or you can try using 1 instead of on 4. You cannot use .htaccess files on a Windows server and the use of .htaccess to turn on Register Globals may not even work on an Apache server, because your host may have disallowed it. 5. If all else fails you can install the Register Globals Patch by Richard Bentley which is available from the Contributions section of the osCommerce Forums. This enables the default osCommerce to work with Register Globals set to off in php.ini. 6. Be aware that if you use the Register Globals Patch most Contributions (add-ons) available for osCommerce won't work on your website without modification, because most are not written to work with Register Globals set to off in php.ini Vger Thanks for the prompt reply! I've opened up my htaccess file, to find the line intact as exactly you had typed above. Nevertheless I tried my luck by changing "1" to "on". Still doesn't work. I just emailed my host, hoping someone would provide me with some solutions because I really wouldn't want to apply a patch that might affect the ability to use other patches. Could it be my previous installation of Cubecart that is giving me this problem?
Guest Posted May 25, 2007 Posted May 25, 2007 ...because I really wouldn't want to apply a patch that might affect the ability to use other patches.... In my experience, most contributions DO work with register globals switched off. I don't understand why it is still being put about that they don't!!!! And I don't understand why getting round the perfectly reasonable security measures that have been put in place by the respective web host is a more desirable solution to honoring them and making the code work in a more secure way! It defies all sense. Rich.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.