I'm a programmer specialising in performant and scalable systems using PHP and Ruby and cooking


Running osCommerce on PHP 5.3+

Older versions (not sure about current versions) won't work on PHP 5 onwards. This is due to some unfortunate conventions used that won't have been patched in many sites being migrated. Usually this is caused by one global that is no longer available in more recent versions of PHP


This can be easily fixed by making sure the long arrays setting is set to "on" in your php.ini

 register_long_arrays = On

N.B. If you are using php-fpm and only want to set this for your current pool you can add this to your pool configuration:

 php_admin_value[register_long_arrays] = on