Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2007
    Posts
    61
    Plugin Contributions
    0

    Default Checkout :Cannot redeclare class order

    Hello everyone,
    I have an issue with the checkout process. I read some posts but it could not help me.

    I have a test webstore which is the same as the 'live' one and they are on the same server but different subfolders.

    Here is my error I got when I click on the "go to checkout" button:

    Fatal error: Cannot redeclare class order in /home/viamccom/public_html/test/includes/classes/order.php on line 1037
    BUT there is no error when I try to buy a gift certificate.... it is weird?!!?

    Like the other posts I could read for me this error exists because the class order is called twice but I have used the "Developper tool kit" with the key words "class order" and I got this :
    /home/viamccom/public_html/test/admin/includes/classes/order.php
    Line #22 : class order {
    /home/viamccom/public_html/test/includes/classes/order.php
    Line #19 : class order extends base {
    /home/viamccom/public_html/test/includes/classes/order_total.php
    Line #19 : class order_total extends base {
    On my main webstore everything is working fine and I have the same answer...
    Do you know where I should look or what I have to do??

    Thank you so much for your help,

    F.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Checkout :Cannot redeclare class order

    Are all the files/folders on both sites EXACTLY identical?
    Are you sure there aren't any extra files in one and not the other? (ie: extra backup files, etc)
    What addons/contributions have been installed to these sites?
    Are there any special order total or discount etc modules added?
    .

    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 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: Checkout :Cannot redeclare class order

    Are all the files/folders on both sites EXACTLY identical?
    I uploaded all the files from my "live" webstore" to my test one ( I followed the "how to move to another server tuto".
    I installed my test webstore first on my own computer using "easyphp" software and I got the same exactly issue....

    Are you sure there aren't any extra files in one and not the other? (ie: extra backup files, etc)
    How I can make sure there are EXACTLY the same files/folders and there aren't any extra files?

    What addons/contributions have been installed to these sites?
    I have installed super order and edit order mods for the admin area, stock by attribute for the products, Ty Package tracker and I think that is it.


    Are there any special order total or discount etc modules added?

    I use just the authorize.net (AIM) and UPSXML modules on my live webstore but for my test webstore, I use just the free shipping option and check/money order option

    Thanks a lot for you help,

    F.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Checkout :Cannot redeclare class order

    Quote Originally Posted by fcegarra View Post
    Are you sure there aren't any extra files in one and not the other? (ie: extra backup files, etc)
    How I can make sure there are EXACTLY the same files/folders and there aren't any extra files?
    download the files from both sites and compare them with WinMerge or a similar comparison tool.

    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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.

  5. #5
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Checkout :Cannot redeclare class order

    I Just went through the checkout on the test site and had no issues,
    added to cart created user checked out
    went to account history and teh GC is there and ready to go

  6. #6
    Join Date
    Jul 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: Checkout :Cannot redeclare class order

    Actually no, it is not working. It is working just when I want to buy a GC. Othewise I have a HTTP 500 Internal server error : "The page cannot be displayed"

    I tried to uninstall (from the admin area) everysingle shipping mod but it is still the same thing. I will try to see if the 2 sites are EXACTLY the same.

    Let me know if you have an idea about it.
    Thank a lot,
    F.

  7. #7
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Checkout :Cannot redeclare class order

    Something goot miffed in the move, its the checkout_shipping that having the issue,

  8. #8
    Join Date
    Jul 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: Checkout :Cannot redeclare class order

    Yes I think it is in the checkout_shipping page but I can't figure it out.
    Do you know which file is it?
    is it that : includes\modules\pages\checkout_process\header_php.php
    and \includes\templates\template_default\templates\tpl_checkout_payment_default.php

    but I can see 6 other pages called "checkout_***" in the includes\modules\pages\ folder

    and 5 other pages called in the "tpl_checkout_***" \includes\templates\template_default\templates\ folder

    In which file I need to look for?
    Thank you

    F.

  9. #9
    Join Date
    Jul 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: Checkout :Cannot redeclare class order

    YEAH it is working! I found the issue.

    For someone who has the same issue I will explain you my mistake.

    In the folder" includes\modules\pages\checkout_shipping" there is a file called "header_php.php" and I made some changes on it so I wanted to save the original one so I created a file called "header_php_base.php" and put it oin the same folder : HERE was my mistake. If you want to save the file add ".bkp" at the end of the file.

    Now it is working like a charm :)
    Thank you everyone for your help!!!

  10. #10
    Join Date
    Mar 2005
    Location
    Reno, NV
    Posts
    183
    Plugin Contributions
    0

    Default Re: Checkout :Cannot redeclare class order

    Thanks. I had this same error working off of someone else's code. They had backup files in the includes/modules/pages/PAGE_NAME/ folder which were all apparently being included. I just deleted their backup file and it worked fine.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. PHP Fatal error: Cannot redeclare class order
    By sketchhgal in forum General Questions
    Replies: 7
    Last Post: 25 Jun 2010, 09:32 AM
  2. Fatal error: Cannot redeclare class order, with Google Checkout
    By buildingblocks in forum General Questions
    Replies: 1
    Last Post: 14 Jun 2010, 11:37 PM
  3. Blank Checkout Step 2 page - Cannot redeclare class ot_tax
    By pdiamond in forum General Questions
    Replies: 11
    Last Post: 11 May 2010, 07:32 AM
  4. Fatal error: Cannot redeclare class order
    By Oseymour in forum General Questions
    Replies: 7
    Last Post: 30 Jun 2009, 03:37 PM
  5. 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

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