Hi
We have recently upgraded from drupal 6.26 to drupal 6.28. We are having an issue that the content is saved to the node table but not to the content_type table.
I can see that there is a php error being thrown as follows:
Unknown column 'field_add_child_business_value' in 'field list' query: INSERT INTO default_content_type_meeting_business (vid, nid, field_add_child_business_value, field_add_child_attachment_value, field_add_sibling_business_value, field_index_formatted_value, field_prefix_value) VALUES (58856, 47599, 47599, 0, 46921, '3', '4') in xx/public_html/sites/all/modules/cck/content.module on line 1213.
The column ‘field_add_child_business’ does not exist in the table for the content type meeting_business ie content_type_meeting_business. This would explain the problem. However, the column did not exist before the upgrade before yet there was no error and the content was stored appropriately.
field_add_child_business is a computed field with the following code:
if (!$node->nid) node_save($node);
$nid = $node->nid;
$node_field[0]['value'] = $nid;
The structure of ‘content_type_meeting_business’ is:
vid int(10) UNSIGNED No 0
nid int(10) UNSIGNED No 0
field_index_formatted_value varchar(50) utf8_general_ci
field_prefix_value longtext utf8_general_ci