Running cron I get repeatedly the following error:
Unknown column 'vid' in 'field list' query: INSERT INTO xmlsitemap_term (tid, vid, changed, previously_changed, priority_override) VALUES (521, 13, 1242384127, 0, -2) in .../includes/common.inc on line 3422.
When I look at the table description in my mySQL database it reads like:
CREATE TABLE `dru_xmlsitemap_term` (
`tid` int(11) NOT NULL default '0',
`pid` int(11) default NULL,
`last_changed` int(11) default NULL,
`previously_changed` int(11) default NULL,
`priority_override` float default NULL,
PRIMARY KEY (`tid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
The statement refers to column 'vid' but there is only a column 'pid' in the table
also the statement refers to column 'changed' but there is a column 'last_changed' table
I freshly installed the module with the same results.
Comments
Comment #1
avpadernoThe database schema is clearly not updated to the last definition used.
The definition of the table schema used is the following:
I guess you updated the module from the 6.x-0.x-dev version. If this is the case, uninstall the module, which is xmlsitemap_taxonomy, and reinstall it; it will create the correct table.
Comment #2
avpadernoOnce that #463564: Remove the central database table is implemented, there will not anymore problems of updating from the 6.x-0.x-dev version, which is not even a supported version.
Comment #3
ulrich commentedProblem solved. But it was a clean install. I did not have a 6.* version of xml sitemap installed before. Thank you for the very quick response.
Ulrich
Comment #4
avpadernoThis is strange; it means that in someway the installation function failed to do its task.
I don't really know how that can happen in a clear installation, as in that case the only routine that is executed is the installation function; no update functions are invoked when a module is first installed.
I am setting this as active, until I don't change the code to use a single database table.
Comment #5
avpadernoI am changing the category because the module doesn't use the database schema reported, and a clean install cannot create a database table with that definition.
I am setting the report as fixed because that is what who opened the issue reported.
Comment #6
Froggie-2 commentedHi,
I hope this is the appropriate place to reopen this issue.
I too am getting error message on my D6 Admin report even though I had a clean upgrade from the DEV version.
The error message is:
" Unknown column 'changed' in 'field list' query: INSERT INTO xmlsitemap_node (nid, changed, previously_changed, priority_override) VALUES (255120, 1242982484, 1242982484, -2) in /var/www/vhosts/website/httpdocs/includes/common.inc on line 3324."
Thanks
Comment #7
avpadernoAs this issue is for a different module, and as the error reported from who opened this issue is completely different, I would say that it's not the appropriate place to reopen this issue.
If you are having a problem, then open a issue report for the problem you are having, after you verified that there isn't a issue report for the exactly same topic.
Adding comments to random reports doesn't help anybody, including who is notified of a new comment added to the issue reports they are subscribed too.