Posted by kiamlaluno on August 7, 2008 at 4:38pm
Jump to:
| Project: | XML sitemap |
| Version: | 6.x-1.x-dev |
| Component: | xmlsitemap_node |
| Category: | bug report |
| Priority: | normal |
| Assigned: | kiamlaluno |
| Status: | closed (fixed) |
Issue Summary
When I go to the front page of my web site, I get the following message error in Drupal reports:
Undefined property: page_type in /home/avpnet/public_html/sites/all/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module on line 416.I am using PHP 4.4.6, and MySQL 4.1.22.
Comments
#1
The error is in the implementation of
hook_views_query_alter(), which contains the following code:<?phpfunction xmlsitemap_node_views_query_alter(&$query, &$view, $summary = NULL, $level = NULL) {
switch ($view->page_type) {
case 'xmlsitemap_news':
$query->add_field('created', 'node');
// ...
}
// ...
}
?>
I checked the code of the Views module (
views/includes/view.inc), but there isn't such property.If there is anybody who can help on this, any help is really appreciated.
#2
This happens because the integration with Views has not been update. Like it is now, it is completely wrong.
#3
Would not it better to remove the buggy integration with Views?
#4
Fixed in 6.x-1.x-dev; the integration with Views has been temporary removed.
#5
Automatically closed -- issue fixed for two weeks with no activity.