Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Payment modules error occurrs while testing cart

Payment modules error occurrs while testing cart

Locked

Views: 1,297

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
6 May 2007, 11:28 AM
#1
mastergroove avatar

mastergroove

New Zenner

Join Date:
Apr 2006
Location:
Southern California
Posts:
27
Plugin Contributions:
0

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!

6 May 2007, 12:00 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

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

6 May 2007, 10:20 PM
#3
mastergroove avatar

mastergroove

New Zenner

Join Date:
Apr 2006
Location:
Southern California
Posts:
27
Plugin Contributions:
0

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?

6 May 2007, 10:50 PM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

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

6 May 2007, 11:22 PM
#5
mastergroove avatar

mastergroove

New Zenner

Join Date:
Apr 2006
Location:
Southern California
Posts:
27
Plugin Contributions:
0

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 May 2007, 11:29 PM
#6
mastergroove avatar

mastergroove

New Zenner

Join Date:
Apr 2006
Location:
Southern California
Posts:
27
Plugin Contributions:
0

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 May 2007, 3:46 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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.php/Troubleshoot_-_Diagnosing_Obscure_Issues

It's a lengthy process, but it works.

13 May 2007, 5:00 AM
#8
mastergroove avatar

mastergroove

New Zenner

Join Date:
Apr 2006
Location:
Southern California
Posts:
27
Plugin Contributions:
0

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