Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2006
    Posts
    53
    Plugin Contributions
    0

    Default Fatal error: Cannot redeclare class table in ...store/includes/

    My first post. Can't believe I have come this far without one. Thanks for such a great script.

    My problem, if you would be so kind to help is:

    Fatal error: Cannot redeclare class table in ../store/includes/modules/shipping/table.php on line 13

    I was making a change to table.php (or at least looking at it) and then replaced the same file via FTP with the original one from the zen-cart-v1.3.6-full-fileset-10272006.zip file on my hard drive. Now Table doesn't show up in the Modules under shipping and the Edit Remove box on the right doesn't show.

    I have tried deleting the shipping module and reuploading it, tried changing the permissions to 777. Any other ideas would be greatly appreciated. Thanks in advance.

    I have attached a photo to help.
    Attached Images Attached Images  

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

    Default Re: Fatal error: Cannot redeclare class table in ...store/includes/

    Look at the:
    /includes/modules/shipping

    via FTP and see how many files start with table ...

    Only keep the one that is named table.php ...

    That is a self loading directory and any file using the reference to table inside is a duplicate of table.php ...
    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
    Dec 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Fatal error: Cannot redeclare class table in ...store/includes/

    Hi Ajeh. Thank you so much for such a quick reply.

    I have only one file in Shipping with table in the filename and that is table.php.

    hmmm

  4. #4
    Join Date
    Dec 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Fatal error: Cannot redeclare class table in ...store/includes/

    Got it! I'm an idiot. Yeah that's it!

    After doing a search with the dev tool kit, I found there are two table.php files; one in /includes/modules/shipping and one in /includes/languages/english/modules/shipping. When I reuploaded the table.php, I uploded the wrong one into languages/english thus the headache.

    Oops. Sorry to bother everyone. Have a nice day.

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

    Default Re: Fatal error: Cannot redeclare class table in ...store/includes/

    Neat little toy that Developer's Tool Kit, eh?
    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!

 

 

Similar Threads

  1. v151 Fatal error Cannot redeclare class
    By sasha21 in forum General Questions
    Replies: 5
    Last Post: 21 Jul 2013, 03:21 AM
  2. Replies: 0
    Last Post: 7 Jul 2009, 12:11 PM
  3. Fatal error: Cannot redeclare class order
    By Oseymour in forum General Questions
    Replies: 7
    Last Post: 30 Jun 2009, 03:37 PM
  4. Fatal error: Cannot redeclare class moneyorder
    By bekinky in forum Customization from the Admin
    Replies: 2
    Last Post: 10 Mar 2007, 07:51 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