Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Cannot redeclare class ot_coupon in

Cannot redeclare class ot_coupon in

Locked

Views: 2,917

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
15 Aug 2006, 3:36 PM
#1
vixenz avatar

vixenz

New Zenner

Join Date:
Aug 2006
Posts:
43
Plugin Contributions:
0

Cannot redeclare class ot_coupon in

Does anyone know what this means?

I have just installed paypal and was in the shipping section to make sure i had all set ok and it give me the following

Fatal error: Cannot redeclare class ot_coupon in /home/vixenza/public_html/shop/includes/modules/order_total/ot_coupon.php on line 10

line 10 as you may see on yours is

class ot_coupon {

Any ideas guys?

Cheers

Rob

15 Aug 2006, 9:09 PM
#2
vixenz avatar

vixenz

New Zenner

Join Date:
Aug 2006
Posts:
43
Plugin Contributions:
0

Re: Cannot redeclare class ot_coupon in

I was wondering if something needs initializing somewhere else beforehand?

Ta

Rob

16 Aug 2006, 1:18 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cannot redeclare class ot_coupon in

Look in the directories for:
/include/modules/order_total
/includes/modules/shipping
/includes/modules/payment

Compare them to the ones in the Full Zen Cart v1.3.0.2 ...

Do you have the right files in the right directories?

Are all the files in these directories the code?

Look in the directories for:
/include/languages/english/modules/order_total
/includes/languages/english/modules/shipping
/includes/languages/english/modules/payment

Compare them to the ones in the Full Zen Cart v1.3.0.2 ...

Do you have the right files in the right directories?

Are all of the files in these directories the language defines?

16 Aug 2006, 8:17 AM
#4
vixenz avatar

vixenz

New Zenner

Join Date:
Aug 2006
Posts:
43
Plugin Contributions:
0

Re: Cannot redeclare class ot_coupon in

Ive looked at the files and

ot_coupon.php and 0t_gvphp in includes/modules/oder_total are copies
of the ones in includes/languages/english/order_total so the class
is attempting to register in both places

Can i replace the ones which are wrong or do I need to do anything specific to change them?

Bit baffled how they are duplicates....

Cheers

Rob

16 Aug 2006, 8:18 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Cannot redeclare class ot_coupon in

You can rename the incorrect files in the languages folder to *.bad

Then re-upload the proper language files from the original ZIP.

16 Aug 2006, 8:51 AM
#6
vixenz avatar

vixenz

New Zenner

Join Date:
Aug 2006
Posts:
43
Plugin Contributions:
0

Re: Cannot redeclare class ot_coupon in

excellent, thanks very much..phew!