Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    25
    Plugin Contributions
    0

    Default PHP Fatal error: Cannot redeclare class cache

    Which error log is the current one though? My cache folder has like 100. The last numbered one says :

    [09-Feb-2011 17:28:22] PHP Fatal error: Cannot redeclare class cache in /home/snk429/public_html/includes/classes/cache.php on line 215


    here's a screenshot of the referenced line :


    do i just remove the character on line 215?
    Last edited by snk429; 10 Feb 2011 at 12:47 AM.

  2. #2
    Join Date
    Jan 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot redeclare class cache

    I tried deleting the character on line 215 and it just made my site go down. Re added the { and the site went back up.
    My site works, just the admin area doesn't. gives me a 500 error still

  3. #3
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: PHP Fatal error: Cannot redeclare class cache

    What version of Zen Cart is being used?

    Did this problem just start or has it been there since install?

  4. #4
    Join Date
    Jan 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot redeclare class cache

    Newest version.

    It started a few days ago. Worked fine for weeks. and it stopped working after I made no changes, just all of sudden stopped.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,385
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: PHP Fatal error: Cannot redeclare class cache

    "cannot redeclare class" tells you that it's trying to load the same file a second time when it's never intended to do so.
    So, that means you've got something in one or more of your site files that's throwing the code into a loop.
    Common causes of such would include:
    - making a backup of a php file by renaming abcd.php to abcd-bak.php instead of deleting the ".php" from the end of the backup file's name
    - poorly written addons
    - incorrectly installed addons
    - rogue activity on the site: http://www.zen-cart.com/wiki/index.p...ing_From_Hacks
    - damaged files: 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.

  6. #6
    Join Date
    Jan 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot redeclare class cache

    OH yeah I did try installing zentagcloud or some taging addon.
    I'll delete that right now.

 

 

Similar Threads

  1. v151 Shipping Estimator Sidebox PHP Fatal error: Cannot redeclare class order on 1.5.1
    By explorer1979 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Apr 2014, 08:29 AM
  2. PHP Fatal error: Cannot redeclare class upload
    By cshart in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 7 Dec 2011, 06:33 AM
  3. PHP Fatal error: Cannot redeclare class order
    By sketchhgal in forum General Questions
    Replies: 7
    Last Post: 25 Jun 2010, 09:32 AM
  4. Fatal Error Cannot Redeclare Class Cache
    By Sofian in forum Basic Configuration
    Replies: 2
    Last Post: 15 Sep 2007, 10:08 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