I'm getting the following error messages to the log file when loading gsitemap under Drupal 4.6.6:

Query was empty query: in /home/.../includes/database.mysql.inc on line 66.

and

sprintf(): Too few arguments in /home/.../includes/database.inc on line 154.

I've applied a fix applied to gsitemap.module:

202c202
< db_query("INSERT INTO {gsitemap} (nid, last_changed) VALUES(%d,%d)", $node->nid, $node->changed);
---
> db_query("INSERT INTO {gsitemap} (nid, last_changed) VALUES(%d,%d,%d)", $node->nid, $node->changed);

Not sure about how to apply changes to CVS yet, but I'll submit this report and then see if I can update CVS.

Comments

SamAMac’s picture

Status: Active » Fixed

Well, I'll be darned. I have received a lot of bug reports about this one, but hadn't had a chance to track it down. Thank you.

I have checked CVS, and it does not appear to have this error. Same thing for 4.7. A fixed 4.6 has been committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)