Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2005
    Posts
    5
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

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

    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.

  3. #3
    Join Date
    Sep 2005
    Posts
    5
    Plugin Contributions
    0

    Default 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?

    www.heartlandharvest.com

    Thanks.

  4. #4
    Join Date
    Sep 2005
    Posts
    5
    Plugin Contributions
    0

    Default Re: Fatal Error after upgrade

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

  5. #5
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

  6. #6
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Fatal Error after upgrade

    Quote Originally Posted by csaling View Post
    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.p...Obscure_Issues
    .

    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.

 

 

Similar Threads

  1. Replies: 12
    Last Post: 26 Jun 2013, 02:14 AM
  2. Fatal Errors after upgrade fro 1.3.9f to h
    By DebbyP in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 6 Jan 2011, 12:35 AM
  3. 1.3.6 Fatal Error at checkout after upgrade - help please
    By jeffmic in forum Upgrading from 1.3.x to 1.3.9
    Replies: 13
    Last Post: 30 Jan 2007, 12:25 PM
  4. Fatal error after upgrade to 1.3.5 renaming phpbb file
    By mikey1719 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 10
    Last Post: 8 Sep 2006, 01:54 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR