Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2006
    Location
    Bucharest, Romania
    Posts
    50
    Plugin Contributions
    0

    Default Cannot redeclare class base in /includes/classes/class.base.php on line 17

    I get this error when I try to see my admin page, so I cannot log in. Page where this is displayed:
    http://www.c o m a n d a t i.ro/admin/login.php (with no blank spaces in the domain name)
    I have recently upgraded from 1.3.7 to 1.3.8a with a one-click install from Dreamhost, and I applied the security patch plus a few changes (extended layout, ...). Yesterday, the admin login page was working ok, now it's not, I must have done something wrong, but I don't know what. I read all related threads on this forum and I still don't know what to do. I tried with WinMerge and I can't really compare the files.

    Can I edit somehow class.base.php in order to not redeclare class base, or what can I do?

    Thanks.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Cannot redeclare class base in /includes/classes/class.base.php on line 17

    I guess one of the problems with knowing a bit about Zen Cart, is knowing that a one click upgrade is simply too good to be true for all but the most straightforward of sites, and any host promising that is being rather irresponsible.

    I would strongly recommend against editing the class.base.php to inhibit the legitimate declaration of the base class. You really need to find the one that shouldn't be there that is getting in first.

    Two ways to do this, firstly look for any back up files hanging around in the classes folder and get rid of them. If that does sort it out, use the developers tool kit in the Admin > Tools menu to find the other place that the class is being declared.
    Last edited by kuroi; 2 Aug 2009 at 11:29 PM. Reason: typo
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Dec 2006
    Location
    Bucharest, Romania
    Posts
    50
    Plugin Contributions
    0

    Default Re: Cannot redeclare class base in /includes/classes/class.base.php on line 17

    class.base.php is below, how can I edit it? I tried deleting one file at a time in the classes folder in /includes but to no avail, all files are back again now, so I have the same problem. Please help.

    <SNIP>

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

    Default Re: Cannot redeclare class base in /includes/classes/class.base.php on line 17

    It has nothing to do with class.base.php. You can't edit that file to fix the problem, because *it* is not the problem.
    You've likely got something *else* that has the same content, or is requesting that class.base.php be loaded a second time.

    There is no simple answer other than the following:
    If it were my site that was displaying that problem, I'd be firing up WinMerge and doing a complete comparison of every file against the original set of Zen Cart files for the version you're currently using. Identify "extra" files and "different" files, and sort out any differences.
    .

    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.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 17 Oct 2014, 04:46 AM
  2. Replies: 3
    Last Post: 29 Aug 2012, 02:57 PM
  3. Replies: 0
    Last Post: 7 Jul 2009, 12:11 PM
  4. Fatal error: Cannot redeclare class base
    By apovey in forum General Questions
    Replies: 3
    Last Post: 25 Jun 2009, 05:08 AM
  5. cannot redeclare class base...
    By awhitley2 in forum General Questions
    Replies: 3
    Last Post: 23 Jun 2009, 02:02 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