update function is misnamed

highvoltage - January 10, 2009 - 03:42
Project:Affiliates
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

There's no instruction in use, the UI contains nothing but two text Boxes with no means or instructions as to generating an affiliate link, and on top of that I recieve this error on the affiliate homepage on a new install of drupal:

user warning: Unknown column 'ac.weight' in 'order clause' query: SELECT aa.*, ac.cat_name FROM affiliates_ads aa INNER JOIN affiliates_cats ac ON ac.cat_id = aa.cat_id WHERE status = 'A' ORDER BY ac.weight ASC, aa.order_by ASC in C:\Documents and Settings\Owner\My Documents\site\modules\affiliates\affiliates.module on line 937.

#1

drupaloSa - January 10, 2009 - 16:54
Title:Is this module even in a usable state?» update function is misnamed
Component:Miscellaneous» Code
Category:support request» bug report
Priority:normal» critical

There is an update in the .install file but the function has been named incorrectly; it should be affiliates_update_6001() instead of affiliates_update_1(). Fixing this and then running the update.php adds a "weight" column to the affliates_cats table and the errors are gone.

#2

kbahey - January 10, 2009 - 17:04
Version:6.x-1.0» 6.x-1.x-dev
Status:active» fixed

Thanks, fixed in dev. New tarball should be available for download in about 9 hours from now.

#3

System Message - January 24, 2009 - 17:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.