Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to save a new tax rule, I get an error that line 124 in uc_taxes.admin.inc has a mismatch between column counts in the INSERT statement. And it does.
this
db_query("INSERT INTO {uc_taxes} (name, rate, taxed_product_types, taxed_line_items, weight, shippable) VALUES (%d, '%s', %f, '%s', '%s', %d, %d)",
should be
db_query("INSERT INTO {uc_taxes} (name, rate, taxed_product_types, taxed_line_items, weight, shippable) VALUES ('%s
', %f, '%s', '%s', %d, %d)",
The first column should be name, not the auto-increment id. I also see this in uc_taxes_copy function as well.
Comments
Comment #1
Al01 CreditAttribution: Al01 commentedIn this comment is a patch by cha0s, I set the status to duplicate.
Regards,
Al