Forums / General Questions / Fatal Error.... Help!

Fatal Error.... Help!

Started by stevi556 on 14 May 2012, 6:54 PM · Views: 820

Results 1 to 7 of 7
14 May 2012, 6:54 PM
#1
stevi556 avatar

stevi556

New Zenner

Join Date:
Mar 2008
Posts:
5
Plugin Contributions:
0

Fatal Error.... Help!

Fatal error: Cannot redeclare date_diff() in /home/stevi556/public_html/shop/admin/includes/functions/general.php on line 2983

The above is what I get when I try to go to the login page for my ZenCart admin. Any suggestions on how to fix it?

14 May 2012, 7:54 PM
#2
davowave avatar

davowave

New Zenner

Join Date:
Mar 2009
Posts:
90
Plugin Contributions:
0

Re: Fatal Error.... Help!

Is this a new install? Old shop that suddenly stopped working?

What version is it?

Have you added any mods or made any changes recently?

14 May 2012, 8:21 PM
#3
stevi556 avatar

stevi556

New Zenner

Join Date:
Mar 2008
Posts:
5
Plugin Contributions:
0

Re: Fatal Error.... Help!

It's an older install that suddenly stopped working. I don't know which version it is...

14 May 2012, 8:22 PM
#4
stevi556 avatar

stevi556

New Zenner

Join Date:
Mar 2008
Posts:
5
Plugin Contributions:
0

Re: Fatal Error.... Help!

This may have started after doing an update?

14 May 2012, 9:51 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Fatal Error.... Help!

That is a classic indication of trying to use ZC v1.3.8a or older on a server running PHP version 5.3.0 or newer.

Best solution: upgrade to a newer version of Zen Cart. Yours is not only incompatible with contemporary server software, but it also has numerous serious security holes.

.
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.

14 May 2012, 10:14 PM
#6
stevi556 avatar

stevi556

New Zenner

Join Date:
Mar 2008
Posts:
5
Plugin Contributions:
0

Re: Fatal Error.... Help!

By upgrade, you mean install the new version and start from scratch, or is there an upgrade option that won't wipe out my current "store?"

14 May 2012, 10:32 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Fatal Error.... Help!

By following a proper upgrade, which retains all your existing data: https://www.zen-cart.com/upgrade
Temporarily staged in another folder+database while you "test" it all, before touching your "live" store, so that there's no downtime. As explained in that document.

.
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.