Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2006
    Location
    Southern California
    Posts
    27
    Plugin Contributions
    0

    cart error Payment modules error occurrs while testing cart

    Hello all...

    This past week I've been testing my payment modules and have encountered an error that I haven't been able to solve/

    Fatal error: Cannot redeclare class order in /home/mjgroove/public_html/includes/classes/order.php on line 20

    No matter what module (paypal express, money order, credit card and COD) I attempt to process I get the same error message.

    Does anyone have a clue as to what could be causing this error?

    Thanks!

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

    Default Re: Payment modules error occurrs while testing cart

    Hello Master Groove,
    Yes the error has to do with you renaming files,

    you have order.php and other files with similar names that still have the .php file name end.

    just like the functions issue we fixed yesterday its the same thing
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Apr 2006
    Location
    Southern California
    Posts
    27
    Plugin Contributions
    0

    cart error Re: Payment modules error occurrs while testing cart

    Thanks for the tip Merlin!

    I attempted to process again and I still got the same error. So I copied to my computer all the other files of order.php that were backed up in the same folder and then I deleted the extras. Then I reverted back to the original order.php and tried to process again and still to no avail.

    What else could it be?

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

    Default Re: Payment modules error occurrs while testing cart

    you have something else that thats calling the order class,
    what new payment modules or shipping modules have you added
    Zen cart PCI compliant Hosting

  5. #5
    Join Date
    Apr 2006
    Location
    Southern California
    Posts
    27
    Plugin Contributions
    0

    cart error Re: Payment modules error occurrs while testing cart

    The only modules related to payment or shipping that I have added are the paypal verified logo v1.0.5 and credit_card_sidebox_v1.2. No 3rd party modules were actually added to payments and shipping itself.

  6. #6
    Join Date
    Apr 2006
    Location
    Southern California
    Posts
    27
    Plugin Contributions
    0

    cart error Re: Payment modules error occurrs while testing cart

    The only module that involved order.php was the ad manager I had problems with before. I have since removed all files related to it including dropping the sql (2) tables that were created for it.

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

    Default Re: Payment modules error occurrs while testing cart

    1. Download all your files and folders to your PC.
    2. Compare with originals.
    3. Identify "extra" and mismatched files.
    4. Make corrections as needed.

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

    It's a lengthy process, but it works.
    .

    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.

  8. #8
    Join Date
    Apr 2006
    Location
    Southern California
    Posts
    27
    Plugin Contributions
    0

    Idea or Suggestion Re: Payment modules error occurrs while testing cart

    Well thanks to Merlin1969 for helping me out.. This could be valuable to others . This is the solution conversed via email.



    >>> Hey Tony whats going on?,
    >>>
    >>> Well I still haven’t figured this one out with the same fatal error!!
    >>> (listed below in red). I ran a WinMerge folder compare report with
    >>> sub-folders box checked - (see attached pic)
    >>>
    >>> What ellse could it be? Am very frustrated and cannot get past this...
    >>> Grrrr
    >>>
    >>> Original error was: Fatal error: Cannot redeclare class order in
    >>> /includes/classes/order.php on line 20
    >>>
    >>> I reverted to a saved restore point (database & home directory) that
    >>> was done and was earlier version that was before making database
    >>> changes on 4.13.07
    >>>
    >>> At that time... *The only extras* were the Zen Apple template from
    >>> sagefish template, contact_us__add_subject_v1, add_customers_from_admin_1
    >>>
    >>> I still don’t know whats preventing me from going through check out
    >>> with success?
    >>>
    >>> I’m going bonkers! :~{
    >>> Any feedback is GREATLY appreciated!

    >
    > On 5/12/07 8:40 PM, "Merlin" <[email protected]> wrote:
    >
    >> Once again I have went in and renamed files that were being called 2x
    >>
    >> this was in
    >> includes/modules/pages/checkout_confirmation
    >> you had several files in there named like header_header_old.php
    >>
    >> this will cause issues,
    >> you need to change the .php to something else so that it wont load
    >>
    >> Pleae post this fix in the forum to help others

    > Will do.
    > Thanks once again! Didn't realize what was going on.
    > reaming it: filename.php.bak Will that work?
    >
    > Yes I always use .php OLD

 

 

Similar Threads

  1. Testing Authorize.net (or other Payment modules)
    By texdc in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 20 Aug 2010, 04:28 AM
  2. Use Check/Money Order payment while testing your site
    By ducksigns in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Oct 2007, 03:28 PM
  3. Error editing payment modules
    By lucky__starre in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 25 Sep 2006, 04:12 AM

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