Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi all,

 

After installing the contribution:

Additional shipping options for zone mudule plus percentage out of the Shipping Modules List I ran into the following error:

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/inforad/public_html/osCommerce/admin/includes/functions/database.php:13) in /home/inforad/public_html/osCommerce/admin/includes/functions/database.php on line 13

 

Is there anyone out there who would put me back on the trails?

 

Thanks

Posted

Hi there,

 

Removing all the files (zone.php and zone2.php) and reinstalling them resulted in following error:

Parse error: parse error in /home/inforad/public_html/osCommerce/includes/modules/shipping/zones2.php on line 178

 

Maybe this is easier to resolve than my previous error?

 

Any advice?

Posted

I get the first error quite often. When I do, I've found if I save the file I'm changing to my local computer and then upload it, it works for some reason. Not sure that will work for you, but it always works for me...

  • 2 months later...
Posted

SOLUTION!!!!

In zones2php (in /modules/shipping) at line 178 there is an extra }else{ after the one listed below. Delete it! So it looks like this! Then it will work.

 

        if ($shipping == -1) {
         $shipping_cost = 0;
         $shipping_method = MODULE_SHIPPING_ZONES2_UNDEFINED_RATE;
       } else {

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...