MySQL error when attempting to activate a fee for a product class

litzastark - March 8, 2009 - 02:10
Project:Ubercart Fee
Version:6.x-1.0-alpha2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I may be getting this error because I've missed a step in setting up my fees; though I tried to follow the instructions on the project home page, I got the following error when I tried to activate one of the fees I'd created:

user warning: Column 'is_active' cannot be null query: INSERT INTO uc_class_fees (pcid, fid, price, is_active) VALUES ('periodic', 1, 25, NULL) in /home/hellgate/public_html/drupal/sites/all/modules/uc_fee/uc_fee.admin.inc on line 379.

(This was on the /admin/store/products/classes/[class-name]/fees page)

I changed line 377 to the following:
$is_active = ($fee['exclude'] == 1) ? (int)0 : (int)1;

And everything seemed to work....though this was a stab in the dark; there may have been a very good reason why it was trying to set $is_active to NULL instead of 1!

#1

mrfelton - March 8, 2009 - 22:31
Status:active» fixed

Fixed in CVS

#2

System Message - March 22, 2009 - 22:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.