Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR: register_globals is disabled in php.ini, please enable it!


kennethchow

Recommended Posts

Hello,

I am running the 2003 osCommerce in php 5.2.17, but now I would like to migrate the site to php 7.2. Unfortunately, the site cannot be working fine.  The page shows the FATAL ERROR: register_globals is disabled in php.ini, please enable it!  I have following the steps to enable in php.ini but cannot fix it.

Anyone can help me.

Thanks

Link to comment
Share on other sites

The later versions of php don't allow register globals to be used. You need to remove any command for it in the roots .htaccess file.  If there is a php.ini file in the shops root, and maybe in your admin directory,  they need to be edited to remove commands for register globals. The php.ini files can just be deleted unless they have commands to change server settings, like max upload size. For a quick try, it is safe to delete them (don't rename them).

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@kennethchow While @Jack_mcs answered you question, I might suggest that the effort to upgrade your old site to PHP 7.x is not the best use of your time. When/if you manage to get your site running under PHP 7.x, you will basically have created your own fork of osCommerce, and no one will be able to support it but you. In addition, there are many security holes in the older versions of osC that will still remain in your site. Lastly, unless you have done some other extensive modifications to your old shop, it will not be responsive (ie: adjusting the screen display for smaller devices such as phones and tablets). Google will penalize your site for this.

I strongly suggest you upgrade your shop to the newest Community Edition of osC., called Phoenix. It is not an in-place upgrade ... you will have to install it in it's own directory, and migrate your data (customers, products, sales history) over to it. If this is something you do not think you can handle, there are developers here that can do it for you.

Stay Safe!

Malcolm

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...