Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Installing under Drupal 6-16, The following error appears:
user warning: Key column 'field' doesn't exist in table query: CREATE TABLE profile_taxonomy ( `fid` INT unsigned NOT NULL DEFAULT 0, `vid` INT unsigned NOT NULL DEFAULT 0, PRIMARY KEY (field, vid) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ in /srv/www/webinars02-drupal-6.16/includes/database.inc on line 550.
It looks as though there is a typo on line 33 of profile_taxonomy.install:
'primary key' => array('field', 'vid'),
Changing 'field' to 'fid' allowed the module to install. However, I notice that there seem to have been some changes around rc1, rc2 regarding whether field names, or fids are stored in the table, so I am not confident that this is a correct fix for this problem.
Once I changed this line, I still encountered another problem (submiited separately.)
Comments
Comment #1
gnindl CreditAttribution: gnindl commentedThere was a typo. Of course "fid" is the new primary key, not the previous field "field".
Comment #2
ctrent CreditAttribution: ctrent commentedThanks - the module installs cleanly now