[PHP3.17] 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.

Was this answer helpful?

 Print this Article

Also Read

[PHP3.10] Do you support PHP4?

Our servers run dual versions of PHP, both 4 and 5. PHP5 is active by default.To switch to PHP4,...

[PHP3.09] What is the path to ImageMagick?

The full path to the binary is:- /usr/bin/convertSome scripts request the directory path, rather...

[PHP3.05] Can I place a PHP script in any directory I choose?

Yes. PHP scripts do not have to reside in any particular directory and will run anywhere in your...

[PHP3.13] Mime magic is not enabled

To enable mime magic, add the following to your php.ini file:mime_magic.magicfile =...

[PHP3.16] How are PHP4 and PHP5 set up?

The default PHP version on our webservers is version 5. This is how the PHP setup on our servers...