Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
There seem to be a number of issues with CCK and Fivestar at the moment, I guess cos CCK is in quite a fluid state too, but I got this error while creating fivestar fields:
* user warning: Invalid default value for 'field_test_target' query: ALTER TABLE content_type_organisation ADD `field_test_target` INT DEFAULT 'NULL' in D:\muun_nobackup\korporatekarma\www\includes\database.mysql-common.inc on line 298.
* user warning: Invalid default value for 'field_test_rating' query: ALTER TABLE content_type_organisation ADD `field_test_rating` INT DEFAULT 'NULL' in D:\muun_nobackup\korporatekarma\www\includes\database.mysql-common.inc on line 298.
Seems lines 75 and 76 of fivestar_field.inc should be changed from:
'target' => array('type' => 'int', 'default' => 'NULL'),
'rating' => array('type' => 'int', 'default' => 'NULL'),
to:
'target' => array('type' => 'int', 'default' => NULL),
'rating' => array('type' => 'int', 'default' => NULL),
This got rid of the error, but it still didn't work, so I guess there are other problems - I don't have time to debug further right now, but maybe someone else can pick this up? =)
Comment | File | Size | Author |
---|---|---|---|
#4 | fivestar_cck6.patch | 11.64 KB | quicksketch |
#3 | fivestar_cck2.patch | 6.97 KB | quicksketch |
Comments
Comment #1
quicksketchYeah, Fivestar's CCK implementation hasn't yet been updated for the new API. I'd be surprised if it works at all. I'd appreciate any help you could lend in getting this ported.
Comment #2
greg.harveyHi,
At the moment I have *no* free time, but I might be able to help in a few weeks if it's still an open issue. I'll keep you posted. =)
Comment #3
quicksketchI was trying to get this working before releasing 1.12, but looks like Drupal 6 will just have to get a 1.12 beta version. The attached patch starts the process but it's not complete (nor working what-so-ever).
Comment #4
quicksketchFinished up the port today. Time for a real release for Drupal 6!
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.