Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Aug 2006
    Posts
    28
    Plugin Contributions
    0

    Default Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    The error message is:

    Fatal error: Cannot redeclare class base in /home/amerint/public_html/zencart/includes/classes/class.base.php on line 17


    I am using Zen Cart 1.3.0.2 and just installed the security update from DrByte.

    I have checked and there are no spaces in the bottom of my files.

    I don't know what else to do to fix this.

    Any ideas?

    Thanks

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

    Default Re: Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    When you made your fixes, did you or your editor make *.bak files?
    If so, please delete those backup files from the server (you may keep a copy on your PC if you like.)
    .

    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
    Jul 2006
    Location
    VA
    Posts
    14
    Plugin Contributions
    0

    Re: Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    I am getting the same error and can not access my zencart now. I can not find any .bak files on the server.
    If at first you don't succeed, buy your competitor's company.

  4. #4
    Join Date
    Jul 2006
    Location
    VA
    Posts
    14
    Plugin Contributions
    0

    Re: Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    Here is the line 17 that it is referencing:

    */
    class base {
    /**

    Looks like there should be something after the { but I don't have a clue what it should be. Can you tell me the piece that I am missing?

    Thanks
    If at first you don't succeed, buy your competitor's company.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    How exactly did you make your changes?
    .

    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
    Jul 2006
    Location
    VA
    Posts
    14
    Plugin Contributions
    0

    Re: Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    In FrontPage. I know, they're evil but I don't know of any other method. I closed that { with } and I now get:

    Parse error: syntax error, unexpected T_VAR in /home/chalagi1/public_html/aela-badiana/zencart/includes/classes/class.base.php on line 22

    Here is the code on my page for line 22:

    */
    var $observers = array();
    /**
    If at first you don't succeed, buy your competitor's company.

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

    Default Re: Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    there is nothing wrong with class.base.php

    undo those changes.


    Frontpage is not your friend.
    .

    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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    Did you make backups of the 4 files you edited ?

    Can you put them back? Does that cause the error to go away?

    And then re-do them one at a time to see what causes things to quit working?
    .

    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.

  9. #9
    Join Date
    Jul 2006
    Location
    VA
    Posts
    14
    Plugin Contributions
    0

    Re: Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    I replaced the files that your security fix said to change and my site is now accessible. Before I start to make the changes one by one, I have a question about one in particular (could be the source of my heart attack this moring), I didn't find this line 101 on my whos_online.php page. I am at v1.3.0.2 but got there from an upgrade. Not sure if that has anything to do with it but figured I would bring it up.

    includes/functions/whos_online.php (only applies to v1.3.0.2)
    line 101:
    Code:
    set session_id = '" . $new_session . "' WHERE session_id = '" . $old_session . "'";should be replaced with these lines:
    Code:
    SET session_id = :newSessionID
    WHERE session_id = :oldSessionID";
    $sql = $db->bindVars($sql, ':newSessionID', $new_session, 'string');
    $sql = $db->bindVars($sql, ':oldSessionID', $old_session, 'string');
    If at first you don't succeed, buy your competitor's company.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error on installation of Security Update 1.3.0.x of Aug. 16, 2006

    I didn't find this line 101 on my whos_online.php page. I am at v1.3.0.2 but got there from an upgrade. Not sure if that has anything to do with it but figured I would bring it up.

    includes/functions/whos_online.php (only applies to v1.3.0.2)
    Sounds like a step got missed in your upgrade. Perhaps you may want to grab the updated version of that file, apply the fix to it, and upload it.

    I'm surprised you're not getting "undefined function" errors with that file being outdated...
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Pay Pal 10002 Security error - Security header is not valid
    By flex67 in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 7 Dec 2010, 08:55 PM
  2. Error message after installing security update
    By craigshaw in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 12 Oct 2009, 05:05 PM
  3. Security Alert: SQL Injection Risk Aug 31
    By DrByte in forum Zen Cart Release Announcements
    Replies: 1
    Last Post: 20 Sep 2008, 04:53 AM
  4. 2006 MySQL server has gone away Error
    By pinkchalkstudio in forum General Questions
    Replies: 1
    Last Post: 18 Sep 2008, 07:28 PM

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