Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What does this mean????


punkit07

Recommended Posts

Fatal error: Cannot redeclare class ups in /home/punkit07/public_html/includes/modules/shipping/ups.php on line 29

 

What does that mean?

 

I am trying to install a UPS Module and it says that. I put it under english/modules/shipping and under includes/modules/shipping. I tried just putting it under one and it dosn't work either.

 

What am i doing wrong?

Link to comment
Share on other sites

The new module you are installing is using the same class name as the existing UPS module so the code is confused because you have two modules with the same class name. You need to delete the old UPS modules from includes/modules/shipping.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The new module you are installing is using the same class name as the existing UPS module so the code is confused because you have two modules with the same class name. You need to delete the old UPS modules from includes/modules/shipping.

 

Jack

 

i did. so then, what do i do? do i install the new ups.php in both directories?

Link to comment
Share on other sites

Yes. Each module has a file in the modules directory and one in the english directory. The one in the english directory just contains text so it won't cause this problem. It is the one in the modules directory that is most likely the reason for the failure.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Yes. Each module has a file in the modules directory and one in the english directory. The one in the english directory just contains text so it won't cause this problem. It is the one in the modules directory that is most likely the reason for the failure.

 

Jack

 

 

ok it works. Thank you. But, at the shipping page it has this error:

United Parcel Service

An error occured with the UPS shipping calculations.

Invalid ShipperPostalCode

If you prefer to use UPS as your shipping method, please contact the store owner.

 

how do i fix that?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...