Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2005
    Posts
    11
    Plugin Contributions
    0

    Default Re: Regarding Security Fix

    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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Regarding Security Fix

    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!

  3. #3
    Join Date
    Oct 2005
    Posts
    11
    Plugin Contributions
    0

    Default Re: Regarding Security Fix

    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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Regarding Security Fix

    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.

  5. #5
    Join Date
    Aug 2006
    Posts
    1
    Plugin Contributions
    0

    Default Re: Regarding Security Fix

    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.

  6. #6
    Join Date
    May 2006
    Posts
    119
    Plugin Contributions
    0

    Re: Error about class.base.php after implementing security patches

    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:

    Fatal error: Cannot redeclare class NameOfYourFileHere in path\to\the\NameOfYourFileHere.php on line XX
    I found this in another forum:
    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:
    Code:
    class NameOfYourFileHere {
    Now add this code before the line you just found...

    CODE:
    Code:
    if ( class_exists('NameOfYourFileHere') ) 
    { 
       return; 
    }
    The new code will prevent repeated processing of includes/NameOfYourFileHere.php and therefore put an end to this error.

    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!

 

 

Similar Threads

  1. Replies: 3
    Last Post: 3 Aug 2009, 06:13 AM
  2. Error after implementing security patches
    By addix in forum General Questions
    Replies: 2
    Last Post: 18 Aug 2006, 03:49 PM

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