vijaybr Posted February 2, 2007 Share Posted February 2, 2007 hello everybody, I need some help in creating a website for my store. I followed the instructions given in the documentation. After FTP of all files, I got the below problem (when http://nriservies.trap17.net/catalog/install) (trap17.net is a free sub-domain, where i am trying to build my website) FATAL ERROR: register_globals is disabled in php.ini, please enable it! Can anybody suggest a solution. Thanks in advance osCommecrce beginner Link to comment Share on other sites More sharing options...
bkellum Posted February 2, 2007 Share Posted February 2, 2007 hello everybody, I need some help in creating a website for my store. I followed the instructions given in the documentation. After FTP of all files, I got the below problem (when http://nriservies.trap17.net/catalog/install) (trap17.net is a free sub-domain, where i am trying to build my website) FATAL ERROR: register_globals is disabled in php.ini, please enable it! Can anybody suggest a solution. Thanks in advance osCommecrce beginner What version of PHP is your server running? If it is PHP 5, then you will need to change the settings in the php.ini file to enable both register_globals as well as register_long_arrays. osCommerce version 060817 running on PHP 5 requires the above two settings be enable. Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
pheonetix Posted February 3, 2007 Share Posted February 3, 2007 osCommerce version 060817 running on PHP 5 requires the above two settings be enable. Are you sure this version could work with php5? Link to comment Share on other sites More sharing options...
bkellum Posted February 3, 2007 Share Posted February 3, 2007 Are you sure this version could work with php5? Yes, as long as both register_globals and long_array are both enabled in the php.ini file on the server. :thumbsup: Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
pheonetix Posted February 3, 2007 Share Posted February 3, 2007 Yes, as long as both register_globals and long_array are both enabled in the php.ini file on the server. :thumbsup: How about the version of Mysql? Does mysql5 work or should downgrade to mysql5, because I used to work on Apache2.2.4+php5.2+mysql5.0, which the osc... could not be installed. Link to comment Share on other sites More sharing options...
♥Vger Posted February 3, 2007 Share Posted February 3, 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 Link to comment Share on other sites More sharing options...
anniew Posted February 3, 2007 Share Posted February 3, 2007 1. You can create a file called php.ini and put this inside the file: Register Globals = On Hi, just came across post after having the same issue myself... I had to amend your instructions further and use the syntax register_globals = On which may be of use to OP. Annie Link to comment Share on other sites More sharing options...
Guest Posted February 3, 2007 Share Posted February 3, 2007 Hi My hosting company has been doing some upgrades and after it is all finished I am getting the exact same thing on my site which has been running fine since 2003. Obviously whatever they have done has made this happen. I take it the php.ini file is not something that is part of the oscommerce and they will have to change it on their server, not me? Link to comment Share on other sites More sharing options...
GoodwinRallySport Posted February 3, 2007 Share Posted February 3, 2007 Hi My hosting company has been doing some upgrades and after it is all finished I am getting the exact same thing on my site which has been running fine since 2003. Obviously whatever they have done has made this happen. I take it the php.ini file is not something that is part of the oscommerce and they will have to change it on their server, not me? *does the robot* That, is, correct. Link to comment Share on other sites More sharing options...
GoodwinRallySport Posted February 3, 2007 Share Posted February 3, 2007 Basically youll need to pay for your hosting service to get better settings if you want to run osCommerce or any e-commerce site. The free hosting sites are good to experiment on though. If you really want to mess with it you can make your own php.ini file or mod it like it was said up above. Free host dont allow alot of options to reduce the threat of ppl hosting torrents. Link to comment Share on other sites More sharing options...
Guest Posted February 3, 2007 Share Posted February 3, 2007 Well, if that was to me, I do pay for my hosting company and I have been successfully running my oscommerce sites since 2003. I will try that fix though if the hosting company has problems fixing it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.