Hello, I have the following error

Unknown column 'referrer' in 'where clause' query: select updlog_id, points from uc_updiscounts where oid = 1810 and uid = 1 and referrer = 0 and discount =1 in /public_html/sites/all/modules/userpoints_ubercart/uc_userpoints_discount.module on line 282.

The error occurs when the admin user tries to delete an existing order.

My setup is :
Ubercart Userpoints 6.x-2.0-beta2
Ubercart 6.x-2.x-dev (2011-Oct-25)

Any help?

Thanks allot in advance

Comments

TR’s picture

Version: 6.x-2.0-beta2 » 6.x-2.x-dev

Confirmed. Looks like you can just remove the "referrer = 0" portion of that query, but I have to do some testing to understand this code before I commit a fix.