Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2005
    Posts
    81
    Plugin Contributions
    0

    Default Fatal error: Call to a member function on a non-object in

    Ok so I am suddenly getting this message now. the only thing I had been editing was the stylesheet for my template which of course I tried backing out. Strangely if I wait a few minutes I can seem to get to the homepage of the cart which is /storefront but then upon the next click back it comes

    Full error
    Fatal error: Call to a member function on a non-object in /home/saltycri/public_html/storefront/includes/classes/category_tree.php on line 68

    Line 68 is
    $categories->MoveNext();

    And if I pull up lines 65-72 of that page it shows

    if (!isset($first_element)) {
    $first_element = $categories->fields['categories_id'];
    }
    $categories->MoveNext();
    }
    if (zen_not_null($cPath)) {
    $new_path = '';
    reset($cPath_array);


    any ideas what happened? store address www.saltycritter.com/storefront
    Last edited by shawnz28; 12 May 2006 at 12:11 AM. Reason: add page address

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Fatal error: Call to a member function on a non-object in

    Had you done anything within 2-15 minutes prior to changing the stylesheet on your shop?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2005
    Posts
    81
    Plugin Contributions
    0

    Default Re: Fatal error: Call to a member function on a non-object in

    Few things I had been toying with but not sure if it was within 15 minutes such as I changed one of the product types name and edited one of the attributes along with created a pruduct option from the cataglong list in the admin but I think that was longer before on each account.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Fatal error: Call to a member function on a non-object in

    The change on the product type ... can you expand on that?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Apr 2005
    Posts
    81
    Plugin Contributions
    0

    Default Re: Fatal error: Call to a member function on a non-object in

    I edited the 3rd product type which I think was called Document - General maybe to Snails and Crabs by editing the Product Type name. And looking further after you asked the above question I noticed that I must have somehow made the drop down called a SubType the same catagory... Even though I dont really yet understand this whole product type thing yet as was playing with it in atempt to solve my other question here http://www.zen-cart.com/forum/showthread.php?t=35345 it dawned on me that having something be a subtype of itself would be a conflict or a potential one at least. I changed the drop down to make it a sub cat of Products General and the error has gone
    Last edited by shawnz28; 12 May 2006 at 01:25 AM.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Fatal error: Call to a member function on a non-object in

    Document General is a special Product Type that is not designed for selling and lacks in most all of the features needed for a Product ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 Fatal error: Call to a member function on a non-object
    By joejoejoe in forum General Questions
    Replies: 1
    Last Post: 8 Jan 2013, 11:53 PM
  2. Replies: 6
    Last Post: 4 Jun 2007, 11:42 PM
  3. Fatal error: Call to a member function on a non-object
    By [email protected] in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 16 Jan 2007, 03:43 AM
  4. Fatal error: Call to a member function on a non-object
    By jonwil99 in forum General Questions
    Replies: 1
    Last Post: 18 Oct 2006, 03:01 PM

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