Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Posts
    5
    Plugin Contributions
    0

    Weird Array Related PHP error

    Hello Everybody,

    First things first: I am a complete newbie when it comes to ZC, and I'm trying to learn fast. I've installed ZenCart on my shop website, everything seems to be in order, the installation gave me no error messages. However, When logging in to the Admin Section, most options of the 'Catalog' menu give me the following PHP error (while everything seems to be working)

    Code:
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in XXXXXX_html/v2/cart/admin/includes/modules/category_product_listing.php on line 122
    
    Warning: array_merge() [function.array-merge]: Argument #3 is not an array in XXXXXX_html/v2/cains/lrt/admin/includes/modules/category_product_listing.php on line 122
    
    Warning: reset() [function.reset]: Passed variable is not an array or object in XXXXXX_html/v2/cart/admin/includes/classes/object_info.php on line 29
    
    Warning: Variable passed to each() is not an array or object in XXXXXX_html/v2/cart/admin/includes/classes/object_info.php on line 30
    Why?

    Cheers,

    Bas

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

    Default Re: Weird Array Related PHP error

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in XXXXXX_html/v2/cart/admin/includes/modules/category_product_listing.php on line 122
    Line 122 of that file is a PHP comment in all versions since as far back as at least v1.2.6.

    v1.3.0.2 is out ...

    So, either you've installed an addon/mod that contains out of date files, or you're using a very old version of Zen Cart...

    Without digging back into more earlier versions of code, I can't even help you figure out what's causing it...
    .

    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.

  3. #3
    Join Date
    Jun 2006
    Posts
    5
    Plugin Contributions
    0

    Default Re: Weird Array Related PHP error

    ...thank you for your reply...

    You'd think I'd have an ancient version would you? And you were half right, I HAD. the problem occurred then too. The first thing I did though, was update to the lastest Version. I downloaded an installed the full fileset.

    So if (apparently) these files are still 'out of date': why were they still in the new full fileset?

    I'm stumped... I'll try uploading those specific files again...


    Bas.

    P.S. : Could it be that my server is running an outdated version of PHP, it doesn't seem to, but you never know...

  4. #4
    Join Date
    Jun 2006
    Posts
    5
    Plugin Contributions
    0

    Default Re: Weird Array Related PHP error

    re-uploading the admin/includes/modules and andmin/includes/classes folders seems to havae done the trick.

    Thanks for the input!

 

 

Similar Threads

  1. Error in referrals.php - Cannot use object of type queryFactoryResult as array
    By Agouti in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 3 Jan 2009, 08:25 PM
  2. Replies: 1
    Last Post: 14 Mar 2008, 02:58 AM
  3. Fatal error: Cannot use string offset as an array in upsxml.php
    By yaby in forum Addon Shipping Modules
    Replies: 4
    Last Post: 19 Oct 2007, 06:40 PM
  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. PHP error, sessions related? Can't login to Admin area 5.2.0
    By deadgraviti in forum Installing on a Mac Server
    Replies: 4
    Last Post: 18 Dec 2006, 05:41 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