Use of an undefined constant

yuriy.babenko - July 8, 2008 - 17:34
Project:XML sitemap
Version:7.x-2.x-dev
Component:xmlsitemap_node
Category:bug report
Priority:normal
Assigned:kiamlaluno
Status:closed
Description

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'),
    ),
?>

#1

yuriy.babenko - July 9, 2008 - 18:05
Status:needs review» duplicate

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

#2

kiamlaluno - November 16, 2008 - 02:55
Status:duplicate» active

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

#3

kiamlaluno - November 16, 2008 - 20:04

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

kiamlaluno - November 16, 2008 - 20:07
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

kiamlaluno - November 16, 2008 - 20:08
Title:Notice being thrown in xmlsitemap_node.module» Use of an undefined constant

#6

kiamlaluno - November 16, 2008 - 23:49
Assigned to:Anonymous» kiamlaluno

#7

kiamlaluno - November 17, 2008 - 01:39
Status:active» fixed

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

#8

System Message - December 1, 2008 - 01:41
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.