Fatal error: Cannot redeclare class base in /usr/home/bedtoyz/public_html/includes/classes/class.base.php on line 17
Anyone have any ideas on why im getting that after the patch was put on?
Version 1.3.0.2
Fatal error: Cannot redeclare class base in /usr/home/bedtoyz/public_html/includes/classes/class.base.php on line 17
Anyone have any ideas on why im getting that after the patch was put on?
Version 1.3.0.2
There are a number of reasons that this can happen ... a comparrison of your files to v1.3.0.2 would be a start ...
If all else fails, put back the files you just changed and get your site back to running then apply the updates carefully ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Well Found my error. It was my own stupidity.
When I was editing the application_top. I put
$autoLoadConfig = array();
include($base_dir . $loader_file);
include($base_dir . $loader_file);
Instead of
$autoLoadConfig = array();
include($base_dir . $loader_file);
Guess I should exam what im doing closer before I post. Working great now.
Good catch.
.
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.
I had exactly the same error line, I think we're only meant to paste the first line of the patch: includes/application_top.php:
this line: $autoLoadConfig = array();
above this line which is already there:
include($base_dir . $loader_file);
If you paste in both lines the second line is duplicated, when I deleted the duplicated line everything worked fine.
I post this since I had a differnt fix to a similar issue after installing a hack... I could not locate the problem file (the one calling the class again) and was getting this message:
I found this in another forum:Fatal error: Cannot redeclare class NameOfYourFileHere in path\to\the\NameOfYourFileHere.php on line XX
This error sometimes appears after installing hacks or making certain other edits to your cart's files. Each page must process the code contained in the path/to/NameOfYourFileHere.php file once. If a page tries to process this code a second time, the error above appears.
Fortunately, this is an easy error to fix. First, you need to locate this line in your NameOfYourFileHere.php file.
CODE:
Now add this code before the line you just found...Code:class NameOfYourFileHere {
CODE:
The new code will prevent repeated processing of includes/NameOfYourFileHere.php and therefore put an end to this error.Code:if ( class_exists('NameOfYourFileHere') ) { return; }
Many thanks to the folks in the PHPBB forums for helping me with this code - applied it to my cart and it worked like a charm.
I do not know of any security issues raised by this fix... if anyone knows why this should NOT be used please speak up!