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

avpaderno’s picture

The error is in the implementation of hook_views_query_alter(), which contains the following code:

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.

avpaderno’s picture

This happens because the integration with Views has not been update. Like it is now, it is completely wrong.

avpaderno’s picture

Would not it better to remove the buggy integration with Views?

avpaderno’s picture

Version: 7.x-2.x-dev » 6.x-1.x-dev
Assigned: Unassigned » avpaderno
Status: Active » Fixed

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

Status: Fixed » Closed (fixed)

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