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:

<?php
function 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

Version:7.x-2.x-dev» 6.x-1.x-dev
Assigned to:Anonymous» kiamlaluno
Status:active» fixed

Fixed in 6.x-1.x-dev; the integration with Views has been temporary removed.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here