Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FOUND BUG/ERROR IN ZONE.PHP!!!!


LukasDJ

Recommended Posts

HI. We found an error when install ZONE RATES function from SHIPPING MODULE

 

Once time I declare that I want to use 6 zones instead 1, and I INSTALL from Admin Panel ZONE RATES voice, the OsC send an error...

 

1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'True', 'False'), ', now())' at line 1

 

insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable Zones Method', 'MODULE_SHIPPING_ZONES_STATUS', 'True', 'Do you want to offer zone rate shipping?', '6', '0', 'tep_cfg_select_option(array('True', 'False'), ', now())

 

[TEP STOP]

 

 

We solved this problem reading ZONES.PHP....We found the error here....

original file:

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable Zones Method', 'MODULE_SHIPPING_ZONES_STATUS', 'True', 'Do you want to offer zone rate shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");

 

 

It's necessary to use this file:

 

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable Zones Method', 'MODULE_SHIPPING_ZONES_STATUS', 'True', 'Do you want to offer zone rate shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'))', now())");

 

You can to see that there is a grammar problem with

'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");

 

into

'tep_cfg_select_option(array(\'True\', \'False\'))', now())");

 

 

 

But we have found OTHERS ERRORS as these....

It's necessary to read WELL some files...BYE to everyone

 

Qme & Lukas

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...