Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
5.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2007 at 13:48 UTC
Updated:
18 Aug 2007 at 01:49 UTC
I just installed Contemplate and even if all I do is check "affect body" and save it (no changes at all), I get this error:
user warning: Unknown column 'rss' in 'field list' query: INSERT INTO contemplate (type, teaser, body, rss, enclosure, flags) VALUES ('ad', '
\n
Strapline
\n
\n
print $field_strapline[0][\'view\']\n
\n
\n\n
\n
Advertising Agency
\n
\n
print $field_advertising_agency[0][\'view\']\n
\n
\n\n
\n
Client
\n
\n
print $field_client[0][\'view\']\n
\n
\n\n
\n
Image
\n
\n
print $field_image[0][\'view\']\n
\n
\n\n
\n
Art Director
\n
\n
print $field_art_director[0][\'view\']\n
\n
\n\n
\n
Copywriter
\n
\n
print $field_copywriter[0][\'view\']\n
\n
\n\n
\n
Photographer
\n
\n
print $field_photographer[0][\'view\']\n
\n
\n', '
\r\n
Strapline
\r\n
\r\n
print check_plain($node->field_strapline[0][\'value\'])\r\n
\r\n
\r\n\r\n
\r\n
Advertising Agency
\r\n
\r\n
print check_plain($node->field_advertising_agency[0][\'value\'])\r\n
\r\n
\r\n\r\n
\r\n
Client
\r\n
\r\n
print $field_client[0][\'view\']\r\n
\r\n
\r\n\r\n
\r\n
Image
\r\n
\r\n
print $field_image[0][\'view\']\r\n
\r\n
\r\n\r\n
\r\n
Art Director
\r\n
\r\n
print $field_art_director[0][\'view\']\r\n
\r\n
\r\n\r\n
\r\n
Copywriter
\r\n
\r\n
print $field_copywriter[0][\'view\']\r\n
\r\n
\r\n\r\n
\r\n
Photographer
\r\n
\r\n
print $field_photographer[0][\'view\']\r\n
\r\n
\r\n', '
\n
Strapline
\n
\n
print $field_strapline[0][\'view\']\n
\n
\n\n
\n
Advertising Agency
\n
\n
print $field_advertising_agency[0][\'view\']\n
\n
\n\n
\n
Client
\n
\n
print $field_client[0][\'view\']\n
\n
\n\n
\n
Image
\n
\n
print $field_image[0][\'view\']\n
\n
\n\n
\n
Art Director
\n
\n
print $field_art_director[0][\'view\']\n
\n
\n\n
\n
Copywriter
\n
\n
print $field_copywriter[0][\'view\']\n
\n
\n\n
\n
Photographer
\n
\n
print $field_photographer[0][\'view\']\n
\n
\n', '', 2) in C:\www\drupal\includes\database.mysql.inc on line 172.
Comments
Comment #1
jjeff commentedYou've just installed version 1.2?
Were you updating from a previous version?
If so, did you run update.php?
If not, do you know if you happened to see any errors when you first enabled the module?
Thanks.
Comment #2
nancydruNo, I did not update from a previous version - that's the problem. In update_1 you added fields, but you never went back and put them in the .install code. I forced update_1 to run and the problem is cleared up, but this needs to be fixed for anyone else installing for the first time.
Comment #3
jjeff commentedCorrect. Looks like installer file got out of sync. Should be fixed now. New release (Drupal 5 ver1.3) fixes this problem.
Thanks for the report!
Comment #4
Robardi56 commentedHi,
I upgraded from 1.2 to 1.3 and ran the upgrade script, and still got the error after.
Is the only fix for this to uninstall / reinstall the module ?
Can't the upgrade script create the missing data ?
Thanks,
Brakkar
Comment #5
Robardi56 commentedIt's ok I forced it to run update 1.
Comment #6
DanielR commentedI could really use the fix above. Anybody know how to run just one update function as suggested?
Comment #7
Robardi56 commentedOn the upgrade script page, open the drop down menu with all the drop down menus of all your installed modules.
Go the the line about contemplate, open the drop down menu, and select the "1".
Then run the script, it will create the necessary tables.
Comment #8
(not verified) commented