elogicmedia Posted August 1, 2005 Share Posted August 1, 2005 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 More sharing options...
Guest Posted August 1, 2005 Share Posted August 1, 2005 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 More sharing options...
elogicmedia Posted August 1, 2005 Author Share Posted August 1, 2005 Thanks Matti, I'll have a look. Only thing is though I have not touched that table within phpMyAdmin or any other way. Link to comment Share on other sites More sharing options...
elogicmedia Posted August 1, 2005 Author Share Posted August 1, 2005 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 More sharing options...
elogicmedia Posted August 2, 2005 Author Share Posted August 2, 2005 OK after looking into this I still could not find how to fix the problem.. anyone have any other suggestions? Thanks Link to comment Share on other sites More sharing options...
Guest Posted August 2, 2005 Share Posted August 2, 2005 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 More sharing options...
elogicmedia Posted August 2, 2005 Author Share Posted August 2, 2005 Thanks Matti, I checked both the address_book table and the customer table but they both seem fine, is there another table I should be checking for these users? Link to comment Share on other sites More sharing options...
Guest Posted August 2, 2005 Share Posted August 2, 2005 Yes - check that the country referred to by the country_id in the address book exists in your countries table :-" Matti Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.