Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customers Page in ADMIN Errors


elogicmedia

Recommended Posts

Hi, When I log into the admin section and click on customers I get the following warnings:

 

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/adamsymo/public_html/www.fwamedia.com.au/onlinestore/admin/customers.php on line 734

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/adamsymo/public_html/www.fwamedia.com.au/onlinestore/admin/customers.php on line 736

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/adamsymo/public_html/www.fwamedia.com.au/onlinestore/admin/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /home/adamsymo/public_html/www.fwamedia.com.au/onlinestore/admin/includes/classes/object_info.php on line 18

 

I have not installed any modifications and it is on PHP 4.

 

Any idea?

 

Thankyou!

Link to comment
Share on other sites

The most likely cause is due to having edited customers directly in the database using phpmyadmin - there is more than one table involved.... your problem is most likely with the address_book table.

 

Matti

Link to comment
Share on other sites

Oh and another thing is, if I click onto page 2,3,4 or any other page for the customers I do not get the error, only when on the 1st page..

 

Infact, it is only with the first customer within the list, maybe they are missing some details from another table? SORRY, only with some of the customers, some are fine while others are not.

 

???

 

EDIT: After looking into it more, some customers have the error while others are fine...??

 

Any thoughts?

 

Thankyou

Link to comment
Share on other sites

Take a look in your database and see what is missing for customers who have the error.... perhaps their country_id

 

Below is the first line of code returning the error:

 

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

 

The variable $country (argument 1) is empty for the ones having the problem.

 

 

 

Matti

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...