Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2004
    Posts
    246
    Plugin Contributions
    0

    Default [function.array-merge]: Argument #1 is not an array in reviews.php line 302

    Hello

    Today I migrated a shop from an old server onto a new one and everything went fine apart from the database versions were incompatible. I corrected this with a fresh import and all is well apart from the reviews page in the stores admin which says


    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/toys4car/public_html/admin/reviews.php on line 302

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/toys4car/public_html/admin/reviews.php on line 303

    Warning: reset() [function.reset]: Passed variable is not an array or object in /home/toys4car/public_html/admin/includes/classes/object_info.php on line 29

    Warning: Variable passed to each() is not an array or object in /home/toys4car/public_html/admin/includes/classes/object_info.php on line 30


    I am assuming that this error is either down to the reviews not being imported correctly or a problem with a newer version of Mysql or php5

    Any help to fix this would be much appreciated.
    UK based Zen Cart Web Designer here www.handcoded.co.uk

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

    Default Re: [function.array-merge]: Argument #1 is not an array in reviews.php line 302

    Quote Originally Posted by longstockings View Post
    I am assuming that this error is either down to the reviews not being imported correctly
    Probably correct.
    If the data in your "reviews" or "reviews_description" tables is missing or not in sync, you'll get those kinds of 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.

 

 

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: 19
    Last Post: 14 Dec 2009, 01:17 PM
  3. Replies: 2
    Last Post: 29 Nov 2009, 06:01 AM
  4. Error: Argument #2 is not an array in .../httpdocs/admin/infopages2.php
    By Agouti in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 30 Aug 2007, 02:53 PM
  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