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!
    "Discover the Secret of Looking Good!" @
    http://VardanyanJewelry.net

  2. #2
    Join Date
    Mar 2004
    Posts
    16,019
    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

  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?
    "Discover the Secret of Looking Good!" @
    http://VardanyanJewelry.net

  4. #4
    Join Date
    Mar 2004
    Posts
    16,019
    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

  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.
    "Discover the Secret of Looking Good!" @
    http://VardanyanJewelry.net

  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.
    "Discover the Secret of Looking Good!" @
    http://VardanyanJewelry.net

  7. #7
    Join Date
    Jan 2004
    Posts
    58,283
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    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.

  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" <merlin@camelot-hosting.com> 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
    "Discover the Secret of Looking Good!" @
    http://VardanyanJewelry.net

 

 

Similar Threads

  1. Problem with Payment Modules
    By scottyg in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 6 Apr 2007, 07:11 AM
  2. Payment method by cart quantity?
    By kiwi-licious in forum Addon Payment Modules
    Replies: 1
    Last Post: 28 Aug 2006, 04:03 AM
  3. Payment modules for UK?
    By ryangsoton in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 18 Jul 2006, 10:27 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
  •