Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2008
    Posts
    6
    Plugin Contributions
    0

    help question Admin->Customers Error , Warning: array_merge()

    Hi Everyone,

    When i try to access customers from the admin menu, I get this error

    Code:
    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/qualityt/public_html/shop/admin/customers.php on line 1099
    
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/qualityt/public_html/shop/admin/customers.php on line 1101
    
    Warning: reset() [function.reset]: Passed variable is not an array or object in /home/qualityt/public_html/shop/admin/includes/classes/object_info.php on line 29
    
    Warning: Variable passed to each() is not an array or object in /home/qualityt/public_html/shop/admin/includes/classes/object_info.php on line 30
    I have these modules installed
    Superorders
    admin notes
    ajax image swapper
    big royal mail
    Google checkout
    Orders improved search
    Orders exporter
    uk countries
    vat calculator.

    Any help would be appreciated.
    thank you

    regards
    vinay

  2. #2
    Join Date
    Jan 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: Admin->Customers Error , Warning: array_merge()

    *bump.

    Anyone know why this problem occurs.

    thank you.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Admin->Customers Error , Warning: array_merge()

    Scroll to the bottom of this page and check the Related Threads for possible help.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Admin->Customers Error , Warning: array_merge()

    Kim's right. The issue is discussed in a few other related threads.

    You've imported customer data but haven't done it thoroughly, and you've left data out of sync.
    .

    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.

  5. #5
    Join Date
    Sep 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Admin->Customers Error , Warning: array_merge()

    Snap!

    I get the exact same error message.

    I am no expert at Zen at all, but (there is always a but) it apperas to me that when someone pays via PayPal Express Checkout and have not created an account within Zen (not logged in or anything) then a few fields are not being populated that are 'required' fields. I have noticed that DofB, Telephone Number are 2 that do not get imported.

    I have been chatting my DrByte about this so hopefully we will get to the botto of this soon.

    Cheers
    Jamie @ Fuzion

    www.InkFuzion.co.uk
    www.FunFuzion.co.uk - now live (with a few bugs, but getting there!)

  6. #6
    Join Date
    Sep 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Admin->Customers Error , Warning: array_merge()

    Sorry, me again.

    Has anyone any ideas on this, we are losing orders everyday as people are not being able to complete the whole checkout process properly.

    Any pointers or ideas would be apprecaited.

    Ta

    J
    Jamie @ Fuzion

    www.InkFuzion.co.uk
    www.FunFuzion.co.uk - now live (with a few bugs, but getting there!)

  7. #7
    Join Date
    Mar 2008
    Posts
    25
    Plugin Contributions
    0

    Default Re: Admin->Customers Error , Warning: array_merge()

    I am getting the same error when I try to view my customers. Additionally, the information does not show up on their orders, only a name, phone number and email address. I cannot find a clear cut way to fix this. This appears to only be happening to my Canada customers. Any ideas?!

  8. #8
    Join Date
    Mar 2008
    Posts
    25
    Plugin Contributions
    0

    Default Re: Admin->Customers Error , Warning: array_merge()

    This is what fixed the problem for me:

    I changed the following line in the customers.php file:

    $customer_info = array_merge($country->fields, $info->fields, $reviews->fields);

    $cInfo_array = array_merge($customers->fields, $customer_info);


    to:


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

    $cInfo_array = array_merge((array)$customers->fields, (array)$customer_info);
    $cInfo = new objectInfo($cInfo_array);


    Hope it helps someone else.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Admin->Customers Error , Warning: array_merge()

    That puts a bandage on it and completely hides the fact that you have a data problem. But if all you want to do is turn a blind eye, that works.
    .

    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.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 29 Nov 2009, 06:01 AM
  2. Database Error in Admin... HELP... array_merge
    By limelites in forum General Questions
    Replies: 5
    Last Post: 14 Jul 2009, 11:09 AM
  3. PayPal Express Warning Array_merge
    By Betsysue in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 30 May 2008, 02:09 AM
  4. Warning: array_merge()
    By saulylee in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 30 Oct 2007, 05:05 AM

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