Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Feb 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot redeclare class order -- after changing domain name

    Hi,
    One solution to this problem:

    I got exactly the same error message:

    PHP Fatal error: Cannot redeclare class order in zencart/includes/classes/order.php on line 1018

    In my case it was caused by the file zencart/includes/configure.php. The '?>' was missing at the end of the file. I had obviously deleted it without knowing (and then made it read only). The strange thing is that it did not affect the running of the application, apart from the checkout, when it generated the error quoted above.

    Regards,

    - Jim

  2. #12
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: PHP Fatal error: Cannot redeclare class order -- after changing domain name

    Quote Originally Posted by whippetblue View Post
    In my case it was caused by the ... '?>' was missing at the end of the file.
    Actually, no, that would NOT be the cause of any such error.
    ref: http://tutorials.zen-cart.com/index.php?article=313
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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. #13
    Join Date
    Oct 2009
    Posts
    13
    Plugin Contributions
    0

    red flag Re: PHP Fatal error: Cannot redeclare class order -- after changing domain name

    Still having some problems. The checkout shipping address page shows up blank. When I try and add a separate shipping address it shows up blank but when I try and add a separate billing address it pops up. Everything works completely fine except when I try to add a separate shipping address.
    The php error message I get is:
    PHP Fatal error: Cannot redeclare class order in /home3/hometox7/public_html/includes/classes/order.php on line 1018
    There are now extra order total, shipping, or payment modules added in.
    Not sure where else to start looking for the problem.
    SSL enabled but won't work on or off.
    Any help would be much appreciated it.

  4. #14
    Join Date
    Oct 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot redeclare class order -- after changing domain name

    Quote Originally Posted by bluewire View Post
    There are now extra order total, shipping, or payment modules added in.
    This is meant to say NO extra order total, shipping, or payment modules added in.
    Any Suggestions?

  5. #15
    Join Date
    Oct 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot redeclare class order -- after changing domain name

    Just an update for anyone finding this post. I finally concluded it was the side box shopping cart that was causing the new shipping address button to malfunction during checkout.
    If anyone has a solution to what would make the side box shopping cart do this it would be appreciated.

  6. #16
    Join Date
    Sep 2007
    Posts
    66
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot redeclare class order -- after changing domain name

    Hi bluewire,

    I'm seeing the same php error... and like yourself, I've tried everything I can think of so far.
    Do you mind me asking how you narrowed the issue down the side box? Did you see a difference when you diffed your files vs an original version?

    Thanks.

  7. #17
    Join Date
    Oct 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot redeclare class order -- after changing domain name

    I first realized it would work for the classic zen cart template but not my template. So I was able to eliminate a lot of files that were used for both templates and then knew it had to be files associated with the template I was using.
    The classic template didn't display all the side boxes I had set up because they weren't enabled. So I try disabling the ones in the other template one by one til I found which one is causing it.
    Hope this helps!

  8. #18
    Join Date
    Sep 2007
    Posts
    66
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot redeclare class order -- after changing domain name

    Sure does... thanks.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Fatal error: Cannot redeclare class template_func
    By drseuss in forum General Questions
    Replies: 3
    Last Post: 12 Aug 2009, 07:02 PM
  2. Fatal error: Cannot redeclare class order
    By Oseymour in forum General Questions
    Replies: 7
    Last Post: 30 Jun 2009, 03:37 PM
  3. Fatal error: Cannot redeclare class soapclient
    By srw134 in forum Addon Payment Modules
    Replies: 4
    Last Post: 1 Jun 2009, 06:54 PM
  4. Fatal error: Cannot redeclare class base:order
    By DogTags in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 13 Jan 2007, 02:58 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
  •