inforad Posted May 26, 2004 Posted May 26, 2004 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 Quote
inforad Posted May 26, 2004 Author Posted May 26, 2004 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? Quote
Blowin Posted May 30, 2004 Posted May 30, 2004 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... Quote
inforad Posted May 30, 2004 Author Posted May 30, 2004 After a second reinstall the error has gone away. So everything is running smooth now. Thanks Quote
mbols Posted August 10, 2004 Posted August 10, 2004 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 { Quote
Recommended Posts
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.