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

    Default Fatal error: Call to a member function add_current_page()

    I am doing a fresh install of zc 1.3.7
    the only things i have uploaded are three themes and then removed two of them after I was getting this error.

    The store was working fine and I was able to look around and such. The admin worked and I was able to add pic, products, categories, etc.

    Now i am getting this error.

    Fatal error: Call to a member function add_current_page() on a non-object in /home/xxxxxx/wwwroot/XXXXXXX.com/includes/autoload_func.php on line 90.

    Here are some event s that happened between it working and not working:
    WORKING ...

    -left computer for about 20 minutes.
    -came back and admin was logged out
    -logged back in and viewed the templates link.
    -i downloaded and installed the gold_passion and simple_zen templates.

    NOT WORKING.

    I removed the templates, still getting the error.

    Also, when I open the site in IE (or any new browser on launch) the site index comes up, but then when I try to navigate from the home page, i get that error again.

    Anyone with any suggestions?
    I tried the changes on in the autoload_func.php that some other thread mentioned, but that didnt work.

    please help.
    thank you.

  2. #2
    Join Date
    Feb 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Fatal error: Call to a member function add_current_page()

    well that was quick...

    as i was shutting down for the night, I realized i enabled a 'php_value auto_prepend_file' record in my htaccess file.

    Which in turn was calling session_start();

    I removed that line and now everything works fine again.

    I figured i would leave it up here in case anyone else runs into it.

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

    Default Re: Fatal error: Call to a member function add_current_page()

    Thanks for the update on the solution to this issue that you needed to fix on your settings ...
    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!]
    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!

  4. #4
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Fatal error: Call to a member function add_current_page()

    Quote Originally Posted by mrsocks View Post
    well that was quick...

    as i was shutting down for the night, I realized i enabled a 'php_value auto_prepend_file' record in my htaccess file.

    Which in turn was calling session_start();

    I removed that line and now everything works fine again.

    I figured i would leave it up here in case anyone else runs into it.
    I am getting this error. I do not have php_value auto_prepend_file in my htaccess file. Where is it located?

    I did find in my php.ini file. Initialize session on request startup.
    session.auto_start = 0

    took out 0 and still did not work

 

 

Similar Threads

  1. Replies: 2
    Last Post: 8 May 2016, 03:44 PM
  2. Fatal error: Call to a member function
    By Richard.Tung in forum General Questions
    Replies: 6
    Last Post: 9 Feb 2011, 02:30 PM
  3. Fatal Error - Call to a member function
    By amyleew in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 2 Nov 2010, 12:44 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