Quantcast
Channel: Issues for XML sitemap
Viewing all articles
Browse latest Browse all 1238

Negative changecount value error after node creation

$
0
0
  • The issue occurs for both PostreSQL and MySQL
  • The issue occurs by failure of retrieving a record from node_revisions where nr.nid = %nid and failure to retrieve a record from comments where c.nid = %nid and c.status = COMMENT_PUBLISHED.
  • The proposed fix in comment 66 ensures that if no rows were returned from the DB the changecount is 0 instead of -1.
  • The question becomes why no rows are being returned for $query = db_query("SELECT nr.timestamp FROM {node_revisions} nr WHERE nr.nid = %d", $node->nid);?

Original Issue Post

Hi!

I gave the following errors after node creation, however the created node appear in the sitemap.xml. I'm using postgresql-8.3.7, php-5.2.10, xmlsitemap-6.x-2.x-dev (11-july-2009) and drupal-6.13.

    * warning: pg_query() [function.pg-query]: Query failed: ERROR: value for domain int_unsigned violates check constraint "int_unsigned_check" in /adat/3w/postgres/includes/database.pgsql.inc on line 139.

    * user warning: query: INSERT INTO xmlsitemap (id, type, loc, access, status, lastmod, priority, priority_override, changefreq, changecount, node_type) VALUES (2, 'node', 'node/2', 1, 1, 1247408591, NULL, NULL, 0, -1, 'page') in /adat/3w/postgres/sites/all/modules/xmlsitemap/xmlsitemap.module on line 805.

Viewing all articles
Browse latest Browse all 1238

Trending Articles