Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Posts
    7
    Plugin Contributions
    0

    Default Warning: Variable passed to each() is not an array or object

    I'm running ZC 1.5.1, and have upgrade from 1.3.9.h about one month ago.

    A few days ago I started seeing the message below on my logs folder, several times per day.

    I have searched everything for errors on line query_facory 153, but have not found anything.

    Can someone shed some light?

    PHP Warning: Variable passed to each() is not an array or object in /XX/www/XX/XX/XX.XX/www/html/includes/classes/db/mysql/query_factory.php on line 153.

    Thanks

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Warning: Variable passed to each() is not an array or object

    Quote Originally Posted by caprimia View Post
    I'm running ZC 1.5.1, and have upgrade from 1.3.9.h about one month ago.

    A few days ago I started seeing the message below on my logs folder, several times per day.

    I have searched everything for errors on line query_facory 153, but have not found anything.

    Can someone shed some light?

    PHP Warning: Variable passed to each() is not an array or object in /XX/www/XX/XX/XX.XX/www/html/includes/classes/db/mysql/query_factory.php on line 153.

    Thanks
    query_factory.php is just the messenger. The actual problem is caused by whatever code is calling the query_factory at the time the error is generated.
    This can be caused by:
    Bad code
    A Corrupt database
    An incompatible PHP upgrade.

    The 1st thing I'd suggest is you run a 'repair' on your database tables. If that doesn't solve the problem I'd be trying to monitor the log files whilst doing stuff with your store until you discover what it is that you are doing when the errors occur. This will give a clue as to the actual cause.

    Oh, I'd also suggest you try reverting back to the 'classic' template for a while to see if that solves the problem.

    Cheers
    Rod

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Warning: Variable passed to each() is not an array or object

    .

    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: 4
    Last Post: 23 Jan 2010, 09:35 PM
  2. Replies: 4
    Last Post: 1 May 2009, 06:47 AM
  3. Variable passed to each() is not an array or object in
    By wareagletsf in forum Basic Configuration
    Replies: 2
    Last Post: 13 Mar 2008, 10:32 AM
  4. Help me please!!"Warning: Variable passed to each() is not an array or object"
    By delequah in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 11 Aug 2007, 11:14 AM
  5. Replies: 2
    Last Post: 22 Jan 2007, 12:31 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR