Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / shipping module issue: "Cannot redeclare class" ...

shipping module issue: "Cannot redeclare class" ...

Locked

Views: 966

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
26 May 2008, 6:04 PM
#1
nakulien avatar

nakulien

New Zenner

Join Date:
May 2008
Posts:
4
Plugin Contributions:
0

shipping module issue: "Cannot redeclare class" ...

konnichiha zenners!

Having a little problem with my candapost.php setup.

To walk you guys through with what I did was:

1-upload the SQL file to my store's db

2-upload all the new file paths in the txt. instructions in their respective directories

The problem is when I go to check out I get : Fatal Error:

Cannot redeclare class canadapost in /home/cjcuecom/public_html/store/includes/modules/shipping/canadapost.php on line 496

I'm a little confused - I checked all search queries and the only possible issue I could have is a file in the wrong place. I have triple checked & re-uploaded all the files including canadapost.php but to no avail.

Also line 496 is just a } thingie, so I can't see what the error could be.

Any help would be greatly appreciated!

Regards,

Julien "Mike" Lowry

26 May 2008, 6:53 PM
#2
nakulien avatar

nakulien

New Zenner

Join Date:
May 2008
Posts:
4
Plugin Contributions:
0

Re: shipping module issue: "Cannot redeclare class" ...

Well, I did some re-verfying & it seems that I uploaded a duplicate canadapost.php file to modules/languages/english/shipping.

I guess for anyone having this problem ultimately I think it comes down to a duplicate file floating around, I just checked the sizes & was able to spot the difference between the two.

Hope this helps!

Regards,

Julien "Mike" Lowry