Results 1 to 10 of 20

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Warning: array_merge() [function.array-merge]: Argument #1 is not an array in

    Quote Originally Posted by joudesign View Post
    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);
    thank you,
    It's work with my site.

  2. #2
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Warning: array_merge() [function.array-merge]: Argument #1 is not an array in

    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
    Attached Files Attached Files

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Warning: array_merge() [function.array-merge]: Argument #1 is not an array in

    Either your countries table is empty, or the customer you added is connected to a country which you've deleted from the database.
    You can't go deleting data and not encounter errors.
    .

    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.

  4. #4
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Warning: array_merge() [function.array-merge]: Argument #1 is not an array in

    Thanks DrByte, I fixed it, You maybe right about that because I indeed deleted all the countries from my phpmyadmin side and left only one, for customers also I had to delete them from the phpmyadmin side and when I created a test customer to edit/delete his info, I could do that luckily .. Thanks again ..

 

 

Similar Threads

  1. Warning: array_merge() [function.array-merge]: Argument #1 is not an array
    By antieuclid in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 19 Jul 2010, 02:50 AM
  2. Replies: 2
    Last Post: 29 Nov 2009, 06:01 AM
  3. Replies: 1
    Last Post: 14 Mar 2008, 02:58 AM
  4. Error: Argument #1 is not an array in
    By Fuzion in forum Managing Customers and Orders
    Replies: 2
    Last Post: 2 Feb 2008, 07:57 AM
  5. function.array-merge error
    By conexion in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 8 Apr 2007, 02:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg