Getting the error below when posting new audio nodes, this site was updated from D5 to D6 and then the itunes module was installed.

user warning: Unknown column 'nid' in 'field list' query: INSERT INTO itunes_item (vid, nid, summary, subtitle, explicit, block) VALUES (787, 493, '', '', 0, 0) in /var/www/xxxx/includes/common.inc on line 3477.

mysql> desc itunes_item;
+----------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+------------------+------+-----+---------+-------+
| vid | int(10) unsigned | NO | PRI | 0 | |
| summary | longtext | NO | | NULL | |
| subtitle | varchar(255) | NO | | | |
| explicit | int(1) unsigned | NO | | 0 | |
| block | int(1) unsigned | NO | | 0 | |
+----------+------------------+------+-----+---------+-------+
5 rows in set (0.01 sec)

Please advise the correct table properties.

Thank You

Comments

RXM307’s picture

Not sure if this is correct or not but I'll see how it goes

alter table itunes_item add COLUMN nid int(10) unsigned;

desc itunes_item;
+----------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+------------------+------+-----+---------+-------+
| vid | int(10) unsigned | NO | PRI | 0 | |
| summary | longtext | NO | | NULL | |
| subtitle | varchar(255) | NO | | | |
| explicit | int(1) unsigned | NO | | 0 | |
| block | int(1) unsigned | NO | | 0 | |
| nid | int(10) unsigned | YES | | NULL | |
+----------+------------------+------+-----+---------+-------+
6 rows in set (0.00 sec)

This seems to fix the errors but I'm unsure why the table was like this in the first place.....

drewish’s picture

Did you have the audio_itunes module installed back on D5? There's code to rename the audio_itunes table so you might have had a really old version of it.

drewish’s picture

Status: Active » Postponed (maintainer needs more info)
jenna.tollerson’s picture

I had the same issue, and manually added the row as in #1, which seems to have resolved the error.

I did upgrade audio module to 5.x-1.4 before moving to 6.x, but since that is like 2 years old now, I guess it is really old.

drewish’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)