Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Fatal error: Call to a member function on a non-object

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

Locked

Views: 2,419

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
7 Feb 2008, 3:43 PM
#1
alkayem avatar

alkayem

New Zenner

Join Date:
Oct 2006
Posts:
12
Plugin Contributions:
0

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

Hello,

I have moved my files to new server, I ran installation again and I installed the shop..I can see the shop face, but admin has this error:

[07-Feb-2008 15:33:37] PHP Fatal error: Call to a member function on a non-object in /shop/admin/includes/extra_datafiles/attributes_preview.php on line 27

any help or advice?

Thank you

7 Feb 2008, 4:44 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

alkayem:

/admin/includes/extra_datafiles/attributes_preview.php

Zen Cart does not have an attributes_preview.php file in the /admin/includes/extra_datafiles folder, unless it's something you've added.
Perhaps removing that file or renaming it to .php1 may stop the error you're encountering.

8 Feb 2008, 3:12 AM
#3
alkayem avatar

alkayem

New Zenner

Join Date:
Oct 2006
Posts:
12
Plugin Contributions:
0

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

Thank you !

If I try to log in, I will get the error:

There was a security error when trying to login.

can you help me please in this?

8 Feb 2008, 3:31 AM
#4
alkayem avatar

alkayem

New Zenner

Join Date:
Oct 2006
Posts:
12
Plugin Contributions:
0

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

I have seen this:
https://www.zen-cart.com/tutorials/index.php?article=312

I am using the defualt template..and havent changed anything...

10 Feb 2008, 5:24 PM
#5
alkayem avatar

alkayem

New Zenner

Join Date:
Oct 2006
Posts:
12
Plugin Contributions:
0

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

any help?

11 Feb 2008, 7:50 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

Chances are that your FTP didn't load all your files to the new server correctly.
Either that or you're using outdated files designed for an older version of Zen Cart.

The exact situation you're now experiencing is unclear, so I'll direct you to this catch-all for troubleshooting:
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

If you still can't sort it out, a URL might help, so we can see the error in action.