Got this error after upgrade to tarball dated 2009-02-22 12:20:

Fatal error: Cannot redeclare xmlsitemap_node_form_alter() (previously declared in /var/www/drupal/sites/all/modules/xmlsitemap/xmlsitemap/xmlsitemap.module:86) in /var/www/drupal/sites/all/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module on line 115

I disabled the _node-module in the drupal system table to get the site back online.

Comments

eule’s picture

same here...after enabling xmlsitemap_node = blank page, on all sites...need to remove xmlsitemap_node to get the page back

artscoop’s picture

Idem. It's a nightly build, so it can happen sometimes...

eule’s picture

;)

reikiman’s picture

Nightly build or not... subscribing... um, I got a notification in the module update manager as something I should update to. Hence, I dutifully updated the module.

gillesbailleux’s picture

XML sitemap is a great module, but I had to remove it too ; waiting for the next release...

mikeytown2’s picture

temp fix: comment out lines 83-93 inside xmlsitemap.module (kill the xmlsitemap_node_form_alter() function).

KAP10’s picture

I too had the same problem. And decided to do what everyone else seems to be doing. I deleted the module entirely. I couldn't even get back into the Admin module to diable XML Sitemap. But I also had to go in and delete all references to sitemap in my databases; did that using the CPanel assistant.

I then just decided to re-install the previous version, XML Sitemap 6.x-0.x-dev (2008-Nov-18). That seems to work just fine. And my updates pages, do not indicate an update is needed.

avpaderno’s picture

Title: Error when enabling xmlsitemap_node after upgrading to latest tar ball » Function is declared twice
Status: Active » Fixed

The suggested fix is wrong, as the xmlsitemap_node_form_alter() present in xmlsitemap.module should be xmlsitemap_form_alter() (being a hook, its name must start with the name of the module, without .module).

About the module saying that the database must be update, that is explained in the project page; the module simply says that it needs to update its own database tables.

I fixed it in CVS.

Status: Fixed » Closed (fixed)

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