Using PHP5 makes all my products disappear in OSCommerce

We have updated our version of php so the default used is PHP5 rather than PHP4. This can cause the error message "product not found" when clicking on a product in OSCommerce


This problem is caused by the fact that PHP 5 has "register_long_arrays" set to "Off". 

To re-enable it add the following line to a php.ini file in the root directory of your site.


register_long_arrays = On

If you site already has a php.ini file, just add it to the next line in the file.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Moodle gives a white page and reports memory issues.

Set the following in your php.ini put this in the root of your Moodle installation - this is...

Why isn't my custom php.ini working?

There are a few common reasons why custom php.ini files won't work.   Check the file...

Why is my scheduled task (CRON job) not running?

If the scheduled task did not run check the following before contacting support. 1) The file...

'Pretty' URLs not working in Concrete5

This problem with the Concrete5 script is related to the configuration of PHP on our systems, but...

My script needs a higher memory allocation, how do I increase it?

You can create your own php.ini file inside whatever sub-directory your script is in....