Closed (fixed)
Project:
XML sitemap
Version:
6.x-1.x-dev
Component:
xmlsitemap.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2009 at 04:55 UTC
Updated:
25 Mar 2009 at 12:50 UTC
at 6.x-1.x-dev 2009-Mar-10
I found that only type "node" is not output to xml file.
So I looked in function xmlsitemap_node_xmlsitemap_links
at
if (!($posts_threshold = variable_get('xmlsitemap_node_posts_count_'. $node->uid, variable_get('xmlsitemap_node_posts_count', 100)))) {
continue;
}
$posts = (integer) db_result(db_query("SELECT COUNT(nid) FROM {node} WHERE uid = %d"));
if ($posts_threshold > $posts) {
continue;
}
about variable 'xmlsitemap_node_posts_count' it was undefined (I checked in {variable}).
and the other thing is
(integer) db_result(db_query("SELECT COUNT(nid) FROM {node} WHERE uid = %d"));
i think it should be
(integer) db_result(db_query("SELECT COUNT(nid) FROM {node} WHERE uid = %d",$node->uid));
I think my english is not good.^^'
Comments
Comment #1
ikae commentedaddition:
in
function xmlsitemap_node_node_operations()and other module,too.
at
array('piority' => -2.0),should be correct to "array('priority' => -2.0),"Comment #2
avpadernoThe Drupal xmlsitemap_node_posts_count variable is not undefined (it does not exist such a concept for Drupal variables), but it has not been set to a value different from its default value.
Comment #3
avpadernoComment #4
avpadernoThis has been fixed in CVS.
Thanks for your report.