Results 1 to 3 of 3
  1. #1

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

    Hello, friends.

    This morning when I get from the bed and tried to see how my site is doing I found something very strange, When I enter the site for first time after chache cleaned in my browser everything is OK but when i try to enter another page I get error 500. I think it is cockie related or cahce related problem.

    I have this error in my logs:

    [06-May-2016 15:04:37 UTC] PHP Fatal error: Call to a member function add_current_page() on a non-object in /home/mysite/includes/autoload_func.php on line 179

    I have done nothing to the site, and right now I am desperate, because i tried so many things as full backup restore, but no with sucsess

    here is a link to my store

    Thank you in advance!
    My most recent work: magprom.net

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

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

    The add_current_page function is part of the navigation_history.php class. So the first thing to check is that the class file exists on your server and is intact (and not empty due to a failed FTP upload), and contains original code (not modified by a badly written plugin), etc.
    .

    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

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

    Found the problem :)
    It was that I installed some cache plugin in my wordpress blog, and my blog posts are linked to the store with "wordpress sideboxes only" plugin.

    So if somebody has wordpress installed and "wordpress sideboxes only" you should know that if you turn on caching in wordpress Zencart will be dead for sure, so dont redo every bit of code to find the problem just turn off the wordpress caching plugin!
    My most recent work: magprom.net

 

 

Similar Threads

  1. Replies: 15
    Last Post: 27 Sep 2013, 05:29 PM
  2. v139h PHP Fatal error: Call to a member function add_session() on a non-object
    By absoluteblock in forum General Questions
    Replies: 5
    Last Post: 27 Apr 2013, 01:23 AM
  3. Replies: 5
    Last Post: 31 Jul 2012, 11:33 AM
  4. Replies: 6
    Last Post: 4 Jun 2007, 11:42 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