Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2012
    Location
    London / Roma
    Posts
    30
    Plugin Contributions
    0

    Default PHP Fatal error: Call to a member function MoveNext() on a non-object in

    Hi, I am having a major issue that has just started and I have no idea why or how.

    Server Details:
    PHP Version 5.3.8
    Zen Cart 1.5.0
    Database Patch Level: 1.5.0
    Server OS: Linux 2.6.18-274.12.1.el5
    Database: MySQL 5.1.61-log
    HTTP Server: Apache
    PHP Version: 5.3.8 (Zend: 2.3.0)
    PHP Memory Limit: 64M
    PHP Safe Mode: Off
    PHP File Uploads: On
    Max Size: 32M
    POST Max Size: 32M

    Addons:
    EP4

    The test website I am building has stopped displaying everything that is below the header. This started immediately after I did a bulk upload of product images via Filezilla.

    My debug folder shows the following:
    [29-Mar-2012 15:19:26] PHP Fatal error: Call to a member function MoveNext() on a non-object in /includes/classes/category_tree.php on line 68

    I have taken a back up of now and compared it with a back up taken last week and there are no changes. I have removed all of the images I uploaded but this has not resolved the matter. Reverting back to the Classic template also does not fix the problem.

    I don't know why this is happening, or how to fix it.
    Please Help!

  2. #2
    Join Date
    Jan 2012
    Location
    London / Roma
    Posts
    30
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Call to a member function MoveNext() on a non-object in

    Any ideas anyone? I resolved the issue by rolling back the database and files from an earlier backup. But why it happens still alludes me. Or what caused it to happen.

    I have consulted with my hosting company who are fairly Zen Cart savvy, but even they cannot explain why it happened. Thankfully it is test website, not a live site. But if it happens to a live site I truly would not know what to do.

  3. #3
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,958
    Plugin Contributions
    3

    Default Re: PHP Fatal error: Call to a member function MoveNext() on a non-object in

    Had the same experience a couple of days ago - also using Zc 1.5

    My error message reads:

    Fatal error: Call to a member function MoveNext() on a non-object in /home/XXXXXXXXXX/public_html/includes/classes/category_tree.php on line 68

    It is caused by:

    Creating a TOP LEVEL category, with the default PRODUCT TYPE (ie: Product General)

    Then, you create a SUB CATEGORY in it, but then configure that SUB category to be specific to a DIFFERENT Product type.

    It would seem that the SUB category cannot be configured to hold different product types than a parent category.

    However, if you create a sub category and maintain the PRODUCT TYPE of the parent, there is a feature (at ADD PRODUCT level) where you can select the product type (for that individual product).
    Our latest project is Pet Tags.

  4. #4
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,789
    Blog Entries
    2
    Plugin Contributions
    1

    Default Re: PHP Fatal error: Call to a member function MoveNext() on a non-object in

    Thanks for the report.

    Will test, and see if I can figure out the problem and solution :)

  5. #5
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,789
    Blog Entries
    2
    Plugin Contributions
    1

    Default Re: PHP Fatal error: Call to a member function MoveNext() on a non-object in

    k, so far I'm not able to reproduce this.

    I created a top level category,
    Then restricted that category to Products - General (also tried without any restriction)
    created a sub category within that.
    then restricted that sub-category to Product - Music
    no errors
    tried creating a product within the Product - Music sub category - still no errors

    Can you provide a more detailed step by step, to produce the error

  6. #6
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,958
    Plugin Contributions
    3

    Default Re: PHP Fatal error: Call to a member function MoveNext() on a non-object in

    Quote Originally Posted by wilt View Post
    k, so far I'm not able to reproduce this.

    I created a top level category,
    Then restricted that category to Products - General (also tried without any restriction)
    created a sub category within that.
    then restricted that sub-category to Product - Music
    no errors
    tried creating a product within the Product - Music sub category - still no errors

    Can you provide a more detailed step by step, to produce the error
    We set up ver 1.5 (full manual installation) and applied the all_business template by Picaflor Azul, making sure to apply her 1.5 version of the template.

    Site hosted at TerraNetwork.net (zencart and eComm specialists in the UK)

    Have installed a few mods:

    Image handler 4
    Easy Populate 4
    Apsona ShopAdmin
    Magictoolbox Image Zoom effects
    Google Analytics
    XMLSitemaps

    We created various top-level categories - all at PRODUCT_GENERAL.

    We added SUB-CATEGORIES to some of the top level categories, and then added PRODUCTS to these sub-categories.

    After creating sub-categories and putting products into those categories (all product_general products), we created another sub-category along-side those other sub-categories, (now populated with products), and we changed that sub-category - still empty - to product type DOCUMENT_GENERAL, specifying that any subcategories BENEATH it must also be DOCUMENT_GENERAL.

    This is when we received the error as shown above.

    When the page loads, it gives us the header, but no columns or footer, and in the area where the columns would be, is the error message. This is identical to the error logged in the cache folder.

    Could it be that once sub-categories (at the same LEVEL) are populated with products, creating a NEW sub-category and trying to change its product type, will throw that error?
    Our latest project is Pet Tags.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 10 Nov 2008, 02:37 PM
  2. Fatal error: Call to a member function on a non-object
    By jenbrink@fuse.net in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 16 Jan 2007, 03:43 AM
  3. Fatal error: Call to a member function on a non-object in
    By shawnz28 in forum Basic Configuration
    Replies: 5
    Last Post: 12 May 2006, 03:27 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
  •