Hello
I am facing the same problem, any body could find a solution to this plz?
Hello
I am facing the same problem, any body could find a solution to this plz?
...........Being zenned............
This is a basic PHP error that could occur almost anywhere, and is most likely caused by sloppy coding in one of the add-ons you're using. In the absence of any details about the errors or how you have modified your cart, it's not possible to be more specific.
Last edited by kuroi; 4 Sep 2009 at 01:11 PM. Reason: bizarre typo
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Hello
thank you for the quick reply
I fixed th problem by doing so:
To eliminate thee array_merge() errors, edit the admin/customers.php file:
Find these lines:
Code:$customer_info = array_merge($country, $info, $reviews); $cInfo_array = array_merge($customers, $customer_info);
and change them to:
Code:$customer_info = array_merge((array)$country, (array)$info, (array)$reviews); $cInfo_array = array_merge((array)$customers, (array)$customer_info);
...........Being zenned............
That will certainly deal with the immediate error, where the error shows that its on the customer page (similar errors have been reported elsewhere), but be on your guard for further problems as it may just mask an underlying problem (why the array hadn't been set in the first place) which could then manifest itself elsewhere.
Thanks for posting back the location though, that may be helpful if others suffer this problem.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
What you've done there is merely mask a problem you've got in the integrity of the data in your database.
You've clearly got broken relationships between your customers, customers_info, and address_book tables. This is ALWAYS caused by importing data incorrectly and/or manually fiddling with data in the database.
You should really fix your database integrity problems instead of merely masking them.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Hello
thank you Dr byte :| I dunno vry well the structure of Zencart
I added a field to the customer table, you think this is what caused it?
...........Being zenned............
possibly
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
could you plz advice me further what to check?
...........Being zenned............
OK I had the same problem and I just downloaded a new version of zencart, registered some test customers and I am getting those lines of errors :
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home1/arabbro1/public_html/pc2all/admin/customers.php on line 1099
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home1/arabbro1/public_html/pc2all/admin/customers.php on line 1101
Warning: reset() [function.reset]: Passed variable is not an array or object in /home1/arabbro1/public_html/pc2all/admin/includes/classes/object_info.php on line 29
Warning: Variable passed to each() is not an array or object in /home1/arabbro1/public_html/pc2all/admin/includes/classes/object_info.php on line 30
I can't even delete any customer!! please check my customers file
![]()