Hi I just downloaded the latest dev of the coupon module, (to get the product functionality). When I add a product to an existing coupon, everthing is fine, but when I try to add a coupon, and get an error ' the coupon could not be added; In watchdog, it appears that the query is faliing with coloum count. Here is my watchdog message

Column count doesn't match value count at row 1
query: INSERT INTO uc_coupons (name, code, value, type, status, valid_until, max_uses, products, users, roles, minimum_order) VALUES ('celadon10', 'celadon10', '10', 'price', '1', '1223611200', '0', '567', '', 1)
in /var/www/vhosts/vlfit.com/httpdocs/includes/database.mysql.inc on line 172.

Comments

phazer’s picture

I fixed this in my code, it needs one more %d on line 311 in the query

longwave’s picture

Status: Active » Fixed

Fix commited to CVS.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.