Closed (fixed)
Project:
XML sitemap
Version:
6.x-2.x-dev
Component:
xmlsitemap.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2009 at 06:16 UTC
Updated:
29 Jun 2009 at 04:20 UTC
The error messages are
* warning: array_splice() [function.array-splice]: The first argument should be an array in /var/www/html/sites/all/modules/xmlsitemap/xmlsitemap.inc on line 290.
* warning: Invalid argument supplied for foreach() in /var/www/html/sites/all/modules/xmlsitemap/xmlsitemap.inc on line 293.
They occur when using the rebuild function, but only when rebuilding the gallery module's map. xmlsitemap, xmlsitemap_menu and xmlsitemap_node rebuild correctly.
Drupal 6.12
XML Sitemap 6.x-2.x-dev (2009-Jun-12)
Gallery module 6.x-1.0
Gallery Program v2.3
Gallery Program's sitemap plugin 1.0.5
Comments
Comment #1
dave reidYeah, we need Gallery to update it's implementation of hook_xmlsitemap_links(). It's no longer compatible.
Comment #2
AFowleAt the risk of cross posting, I have raised this at http://drupal.org/node/490518. However I think the Gallery module development has paused while the maintainer considers the next version of the external gallery program.
Comment #3
dave reidWe the good news is you can simply avoid this for now by not selecting Gallery from the rebuild list.
Comment #4
avpadernoI am changing the category, as the bug is not a XML sitemap bug, but rather a Gallery bug that is taking the assumption the hook used by XML sitemap is the same used in the Drupal 5 version; the version for Drupal 6 is free to use the same hook in a total different way, and until now there isn't a XML sitemap official release for Drupal 6. In absence of an official release of the module, the assumption taken by the maintainer of the other module that the implementation of the hook would not need to be change in the Drupal 6 version is arbitrary.
Taking as example Drupal, there are some hooks used by Drupal core code that required the modules to implement it in a slightly different way, but nobody opened a bug report against Drupal for that (and nobody could).
The report should be considered fixed because it has already received an answer two days ago.