Forums / General Questions / Fatal error: Call to a member function on a non-object in /includes/autoload_func.php

Fatal error: Call to a member function on a non-object in /includes/autoload_func.php

Locked
Results 1 to 7 of 7
This thread is locked. New replies are disabled.
27 May 2008, 19:26
#1
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

Fatal error: Call to a member function on a non-object in /includes/autoload_func.php

I'm sorry that I can't figure this out without asking. I don't know what else to do. My site was working fine... I'm still in the initial stages of this site but it functioned. I've added a bunch of modules- nothing that I haven't installed on another site (successfully). Today I added Wordpress and Wordpress on Zen Cart.

Admin works fine- or at least it seems to

The catalog on the other hand - comes up with the error:

Fatal error: Call to a member function on a non-object in /home/XXXXXX/public_html/includes/autoload_func.php on line 90

I've read a bit about this error here but it seems to only occur after a fresh install. This is not a fresh install- new but not fresh.

I've looked at the error log on the cpanel and all it does is parrot back the same error message.

Please help!
Nancy
27 May 2008, 20:03
#2
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Posts:
1,890
Plugin Contributions:
0

Re: Fatal error: Call to a member function on a non-object in /includes/autoload_func.php

I have a similar error with PayPal Sessions viewer.....
No response yet on the post I wrote several days ago!
27 May 2008, 20:17
#3
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

Re: Fatal error: Call to a member function on a non-object in /includes/autoload_func.php

Well, I'm still working on it... If I come up with anything, I'll post it here.

Thanks for letting me know that I'm not in this boat by myself!

Nancy
27 May 2008, 22:19
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Fatal error: Call to a member function on a non-object in /includes/autoload_func.php

ladyink:



Fatal error: Call to a member function on a non-object in /home/XXXXXX/public_html/includes/autoload_func.php on line 90


The autoload system attempts to load in the required class and function files, and then instantiate various classes. While you may see a failure if it can't access an expected class object, what it doesn't tell you is that it's likely because a certain class file didn't load correctly, perhaps because it's damaged or even missing.

Check to be sure that all the files in your /includes folder are in fact present, and complete, not missing all or part of the contents. Yes, that means you may need to re-upload everything, or even download everything and compare what you download from your own site against a fresh set of Zen Cart files, to see what's missing or incomplete.

Other references:
https://www.zen-cart.com/tutorials/index.php?article=82
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues
27 May 2008, 22:23
#5
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

Re: Fatal error: Call to a member function on a non-object in /includes/autoload_func.php

Well, this is what I think happened...

When I installed Wordpress on this site, I had already downloaded version 2.5 and I installed it. When I did, I noticed that there was an upgrade available and I installed and used the automatic upgrade plugin. I actually think that was the problem.

I removed all of the wordpress files, cleared out the database and started over. Just to prove this all to myself, I installed wordpress 2.5 again, installed Wordpress on Zen Cart and then upgraded manually. Seems all is well. "Seems" being the keyword there.

I know that this doesn't help your error message. Sorry, I'm just not that good at this stuff yet (I know there is hope).

Nancy
01 Aug 2008, 13:54
#6
waters_designs_1 avatar

waters_designs_1

New Zenner

Join Date:
Aug 2008
Posts:
1
Plugin Contributions:
0

Re: Fatal error: Call to a member function on a non-object in /includes/autoload_func.php

I've been struggling with this same error...

According to the Debug utility:
PHP Fatal error: Call to a member function add_current_page() on a non-object in ... html/shop/includes/autoload_func.php on line 90

Server OS: Linux 2.4.21-53.ELsmp
Database: MySQL 4.1.22-max-log
HTTP Server: Apache
PHP Version: 5.2.5 (Zend: 2.2.0)
PHP Safe Mode: Off
Session.auto_start Off
Register_globals Off
Zen Cart 1.3.8a

Used BeyondCompare to check all the Includes files and everything seems fine. What else do I need to look for?

Thanks,
Shari
01 Aug 2008, 16:24
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Fatal error: Call to a member function on a non-object in /includes/autoload_func.php

Based on the way the code works, that error message suggests that your /includes/classes/navigation_history.php file is missing or incomplete or damaged. Perhaps re-uploading that file may help.