Talk to me about anything. If you’d like to work with me, or
even if you just need a hug, I’ll get back to you shortly.

Please enter your name


Say something!

Type the characters you see in the picture below.

Captcha needed

+1  (818) 574-3596 
+44 (020) 8123-6463
+91 (0)   9864011106

osCommerceCoders.com

Affordable end to end oscommerce solutions with
Search Engine Optimization

OsCommerce Errors After PHP5 Upgrade

Posted by admin On December - 31 - 2008

After upgrading a OsCommerce site to PHP5 the follow errors occurred when using the customer part of the admin section:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /catalog/admin/customers.php on line 782

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /catalog/admin/customers.php on line 784

Warning: reset() [function.reset]: Passed variable is not an array or object in /catalog/admin/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /catalog/admin/includes/classes/object_info.php on line 18

To eliminate thee array_merge() errors, edit the admin/customers.php file:

Find these lines:

$customer_info = array_merge($country, $info, $reviews);

$cInfo_array = array_merge($customers, $customer_info);

and change them to:

$customer_info = array_merge((array)$country, (array)$info, (array)$reviews);

$cInfo_array = array_merge((array)$customers, (array)$customer_info);

Leave a Reply

Contact Us
Name*
Email*
Phone*
Services*
Message*
Security Code* fc346
 
 

REACH US



You can email us at oscommercecoders@gmail.com


or Click here to contact us or call us at +1 - 818-574-3596

TAG CLOUD

Sponsors