Forums / General Questions / Tried Tried Failed -- Cannot redeclare class "cache"

Tried Tried Failed -- Cannot redeclare class "cache"

Locked

Views: 2,251

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Mar 2008, 6:04 PM
#1
timtimtim avatar

timtimtim

New Zenner

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

Tried Tried Failed -- Cannot redeclare class "cache"

Fatal error: Cannot redeclare class cache in /home/benchma/public_html/base/includes/classes/cache.php on line 215

This is what I get when going to the /admin folder. Thus I cannot do any administrative work.

Checked everything I know to check.

All assistance very grateful for. Thank you.

3 Mar 2008, 7:09 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Tried Tried Failed -- Cannot redeclare class "cache"

Your error message suggests that you've got a copy of "cache.php" in one of the extra_configures or extra_datafiles or extra_functions folders of your admin area.

Start by comparing all your webserver files against a fresh unzipped copy of uncustomized Zen Cart ... and note which files are on the server but not in the basic Zen Cart files. WinMerge can be a handy tool for that.

http://www.zen-cart.com/forum/showthread.php?t=7330
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

Oh, and remember, if you're making changes to files and you want to rename something to keep a backup, DO NOT leave the file with a .php extension. Change .php to .php1 or .bak or .old or something other than .php (or else you'll run into odd problems somewhat similar to what you mentioned).

.
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 Mar 2008, 8:32 PM
#3
timtimtim avatar

timtimtim

New Zenner

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

Re: Tried Tried Failed -- Cannot redeclare class "cache"

Thank you. I have reinstalled ADMIN, and checked all files to my best. Still no go. My server uses sql 5.0**. Is that OK?

I still get:
Fatal error: Cannot redeclare class cache in /home/benchma/public_html/base/includes/classes/cache.php on line 215

Also, WINMERGE: does it work with my FTP files or do they have to be both on my pc?

3 Mar 2008, 9:48 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Tried Tried Failed -- Cannot redeclare class "cache"

Zen Cart largely works with MySQL 5.0.

Your problem is not a MySQL issue. You've likely got duplicates of .php files somewhere ... not necessarily in the admin.

WinMerge runs with files on your PC only. You'll have to download from your FTP first before doing the compare.

.
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 Mar 2008, 10:23 PM
#5
timtimtim avatar

timtimtim

New Zenner

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

Re: Tried Tried Failed -- Cannot redeclare class "cache"

Thank you Doctor. I downloaded another FTP program since my WSFTP had stalled a few times. I reuploaded the whole program in a new folder. This time everything has worked perfectly.

I also purchased the zen book and have received it in the mail.

Thank you for your quick assistance.