Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Fatal Error after upgrade

Fatal Error after upgrade

Views: 3,354

Results 1 to 6 of 6
21 May 2012, 8:53 PM
#1
csaling avatar

csaling

New Zenner

Join Date:
Sep 2005
Posts:
5
Plugin Contributions:
0

Fatal Error after upgrade

After my upgrade a few things happened

  1. The home page on the cart went to some info about zencart. All of the contact info etc, went away.
  2. I get Fatal error: Cannot redeclare date_diff() in /home/heartlan/public_html/store/admin/includes/functions/general.php when trying to log in.

Any ideas?

Thanks.

Carl

21 May 2012, 9:25 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Fatal Error after upgrade

  1. "went to some info about zencart".
    It would be much more helpful to know WHAT it says, instead of something vague.

  2. "Cannot redeclare date_diff()"
    That means you've got multiple files on your site that are declaring the date_diff() function, and they're clashing.
    One common cause of that sort of thing is renaming a file (thinking you're making a backup) from something like "functions_something.php" to "functions_something_bak.php" but because you've left the ".php" on the end you're telling ZC that it's okay to load that ".php" file. And because it contains much of the same content as the original file, you're getting duplicate function declarations.
    Similarly related, if you had v1.3.8 and added a patch to support PHP 5.3, and then upgraded to 1.3.9 or 1.5.0 but didn't remove the patch files from the older versions, then you might trigger similar problems.

22 May 2012, 7:33 PM
#3
csaling avatar

csaling

New Zenner

Join Date:
Sep 2005
Posts:
5
Plugin Contributions:
0

Re: Fatal Error after upgrade

I did upgrade from 1.3.8 to 1.3.9 because of the php.

Do you know what files I should remove?

Also this is what I am seeing on the home page

Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.
Welcome Guest! Would you like to log yourself in?

https://www.heartlandharvest.com

Thanks.

25 May 2012, 12:45 PM
#4
csaling avatar

csaling

New Zenner

Join Date:
Sep 2005
Posts:
5
Plugin Contributions:
0

Re: Fatal Error after upgrade

Any update on what files I would need to remove would be great.

25 May 2012, 3:47 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Fatal Error after upgrade

csaling:

Any update on what files I would need to remove would be great.
Specifically, any files that didn't come with Zen Cart core code need to be assessed and removed if they're not part of addons you intended to add.
So, if there are extra files leftover from the old version, then you need to remove them. That's part of a proper upgrade process, and is mentioned in the upgrade instructions.

Using tools like WinMerge make the identification of "extra" files very quick and simple: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues