osCommerce php5 Issues

Issues:

after migrate from CentOS-3.5 server to FC5 for osCommerce-2.2, there are some issues mainly caused by imcompatibility w/ php5.

  1. cannot display categories
  2. cannot display admin
  3. page manager cannot edit Extra Page

Solutions:

for 1.

  • open /catalog/index.php
  • change p.products_id = s.products_id
  • to p2c.products_id = s.products_id

for 2.

  • open /catalog/admin/includes/classes/upload.php
  • comment out $this = null

for 3.

  • check error_log file of apache
  • add before array_merge($var1,..,$varN) the statement:
  • if (!is_array()) { $var1 = array($var1) ;};
  • :
  • if (!is_array()) {$varN = array($varN);};

 

Close Menu