Hello,
I get this error with any version of xml sitemap that I have tried, what can I do ?
user warning: Unknown column 'tags' in 'where clause' query: UPDATE xmlsitemap_term SET previously_changed = last_changed, last_changed = 1215438903 WHERE tid IN(4, tags) in SITE.COM/includes/database.mysql.inc on line 172.
Thanks.
Comments
Comment #1
hongpong commentedYes I am getting this too. I tried wiping out my xmlsitemap_term table, and reinstalling that (sub)module via devel. Doesn't help - maybe you have to reinstall the full module? That doesn't quite seem to work either.
Comment #2
deepesh commentedSame here, Why nobody is replying ? I think its a bug and needs a FIX.
Comment #3
wwwoliondorcom commentedWhen I disable the xmlsitemap term module, no more problem !
Comment #4
momper commentedsame problem ...
greetings momper
Comment #5
scoutladen commentedeven same problem... any answer?
Comment #6
momper commentedany idea?
it's critical ...
Comment #7
deepesh commentedSeems the module is abandoned.
Comment #8
scoutladen commentedadding the column "tags" to "xmlsitemap_term" work for me...
Comment #9
BLOFISTIS commentedHOW?
Comment #10
scoutladen commentedwith phpmyadmin
Comment #11
schnippy commentedI had the same problem as well and spent some time sifting through the xmlsitemap_term module to see if this was a versioning issue with the database structure.. I couldn't see any reference to this and I'm not sure how it inter-relates yet but I tried scoutladen's suggestion and it seems to be back up and running after I ran the following alter command on my table:
The type declaration of varchar(255) is arbitrary -- not sure what we should be using here..
Comment #12
avpadernoComment #13
asak commentedSame problem.
Will try the "add your own table" solution ;)
Comment #14
avpadernoI am not sure this is the solution to the problem. It can be the module created a wrong SQL query, and that tags should be repleaced with
$tags(i.e.).I think this issue needs to be investigated more.
Comment #15
avpadernoThe values that in a SQL query are placed in
IN()are not column names, but values (strings, or numbers) that must be compared with the content of a column.In this case, the SQL query select all the rows where the column tid contains or
'4', or'tags'. The problem is that the code doesn't surround the string with the apices.This is caused by one of the following SQL queries:
Adding a tags column in the module sitemap avoids the error message, but doesn't make the module work as it should.
Comment #16
avpadernoI am changing the code to resolve this issue. Basically, I will backport a couple of helper functions that help in creating query like those without to forget to surround the strings with apices.
Comment #17
avpadernoIt has been fixed.
Comment #18
avpadernoI forgot to change the status.