Project:XML sitemap
Version:7.x-2.x-dev
Component:xmlsitemap_node
Category:bug report
Priority:normal
Assigned:kiamlaluno
Status:closed (fixed)

Issue Summary

Just came across this:

Notice: Use of undefined constant arguments - assumed 'arguments' in C:\!yuriy\www\rebgv\sites\all\modules\xmlsitemap\xmlsitemap_node\xmlsitemap_node.module on line 465

Notice: Use of undefined constant arguments - assumed 'arguments' in C:\!yuriy\www\rebgv\sites\all\modules\xmlsitemap\xmlsitemap_node\xmlsitemap_node.module on line 468

The lines:

<?php
   
'xmlsitemap_node_view_sitemap' => array(
     
arguments => array('view', 'nodes', 'type'),
    ),
   
'xmlsitemap_node_view_news' => array(
     
arguments => array('view', 'nodes', 'type'),
    ),
?>

Should be:

<?php
   
'xmlsitemap_node_view_sitemap' => array(
     
'arguments' => array('view', 'nodes', 'type'),
    ),
   
'xmlsitemap_node_view_news' => array(
     
'arguments' => array('view', 'nodes', 'type'),
    ),
?>

Comments

#1

Status:needs review» closed (duplicate)

Just noticed that the same problem was reported in http://drupal.org/node/278350 ; setting this issue as a duplicate.

#2

Status:closed (duplicate)» active

Keeping this issue report, as it shows how to resolve it.

#3

Actually, the code how it is now can be completely removed. The integration with Views is thought for Views 1.0, which has never been released for Drupal 6. Views for Drupal 6 passed directly to 6.x-2.0.

#4

Priority:minor» normal

I am rising the priority of the issue. The issue is caused by code which should not be in the module (see the previous comment).
The issue is not certainly critical, but it is not a minor issue.

#5

Title:Notice being thrown in xmlsitemap_node.module» Use of an undefined constant

#6

Assigned to:Anonymous» kiamlaluno

#7

Status:active» fixed

This has been fixed in 6.x-1.x-dev.

#8

Status:fixed» closed (fixed)

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

nobody click here