Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Oct 2009
    Posts
    13
    Plugin Contributions
    0

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

    I'm really hoping someone can help me out. I've been stuck on this problem for a few days.

    I had a site running fine but when we decided to change the domain name and site name after the transfer the checkout pages don't work. I must have not renamed something or am missing something.

    I receive a blank page during checkout_shipping, checkout_payment and checkout_confirmation.
    I have no extra payment, shipping or order total modules installed. I re uploaded all the core modules from a fresh version of zen cart. and still nothing.

    It works when I switch the template to classic so it must have been something I changed in all the template names that screw it all up.
    When i run the debug tool I get this message.

    PHP Fatal error: Cannot redeclare class order in /home7/ropteren/public_html/hometownseeds/includes/classes/order.php on line 1018

    Everything works fine except for the checkout. I'm really anxious to have everything finished so any suggestion would be extremely appreciated. I've looked through as many forums as I could find and tryed all the suggestions so far. It has to be something simple since it was working properly before. Id really rather not have to install a fresh version of zen cart.

    Thanks!

    Heres the sites link if it helps:

    www.hometownseeds.com

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,720
    Plugin Contributions
    6

    Default Re: Blank Pages on Checkout

    In your Zen Cart Admin in the Tools ... Developers Tool Kit ... do a search in the bottom input box on:
    class order

    and see what files come up ... there should be only one ... and that should be in:
    /includes/classes/order.php

    see if you have either bak files or mixed languages/code files ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Oct 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Blank Pages on Checkout

    I searched "class order" using the developers toolkit and got 3 files.

    /home7/ropteren/public_html/hometownseeds/includes/classes/order.php
    Line #19 : class order extends base {

    /home7/ropteren/public_html/hometownseeds/includes/classes/order_total.php
    Line #20 : class order_total extends base {

    /home7/ropteren/public_html/hometownseeds/pro1/includes/classes/order.php
    Line #9 : class order {

    I've tried putting the complete default language folder... Still nothing.
    I've tried putting the complete default template folder... Still nothing.
    I've tried putting the 3 default files that it pops up with "class order"... Still nothing.

    I'm open for any suggestions. I don't know where it could be linked to my template since it only works when the classic green template is enabled.

  4. #4
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Blank Pages on Checkout

    Have you tried turning off all your so-called SEO addons and removing all their redirects from your .htaccess?
    .

    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.

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

    Default Re: Blank Pages on Checkout

    I tried disabling SSU and removing the .htaccess and still nothing.

    Everything works fine on the classic template with the SSU add on.

    I'm running out of ideas!

  6. #6
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

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

    Please explain more of what was going on *before* this started happening. You talked about changing domain/site name, amongst other things. What exactly did you change? Why? How? etc
    .

    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.

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

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

    I basically kept the entire site.
    Changed the store folder to the new domain name, and directed a different URL to it.
    Then I changed all the links and names to the new correct store name.
    I changed the name of the template to correlate the new store name and i'm afraid theres a part that I forgot to change and am missing it somewhere.
    It was a fairly simple change and everything works totally fine except for checkout.
    Checkout used to work fine before I had changed everything.

  8. #8
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

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

    In your configure.php files, do you have ENABLE_SSL set to true? If so, change it to 'false' and test checkout. Does that make any difference?
    .

    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.

  9. #9
    Join Date
    Oct 2009
    Posts
    13
    Plugin Contributions
    0

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

    It is set to false but does not work under true either.

    Could I have messed up some core file that requires a fresh install of Zen Cart?
    Or could it be a problem in the database that i'm going to have no idea how to fix? Haha

    I really appreciate the replys. You guys are awesome!

  10. #10
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

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

    The first thing I'd do would be a FULL evaluation of ALL files on your server, comparing them against the ORIGINAL Zen Cart files. Looking for any extra files not added intentionally, and any altered files that contain changes you didn't put there intentionally. Evaluate EVERY discrepancy to see if it causes looping back through the regular order process for some odd reason.
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    WinMerge
    .

    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.

 

 
Page 1 of 2 12 LastLast

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
  •