Closed (fixed)
Project:
XML sitemap
Version:
6.x-1.x-dev
Component:
xmlsitemap_node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2009 at 12:47 UTC
Updated:
8 Mar 2009 at 23:40 UTC
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
Comment #1
eule commentedsame here...after enabling xmlsitemap_node = blank page, on all sites...need to remove xmlsitemap_node to get the page back
Comment #2
artscoop commentedIdem. It's a nightly build, so it can happen sometimes...
Comment #3
eule commented;)
Comment #4
reikiman commentedNightly 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.
Comment #5
gillesbailleuxXML sitemap is a great module, but I had to remove it too ; waiting for the next release...
Comment #6
mikeytown2 commentedtemp fix: comment out lines 83-93 inside xmlsitemap.module (kill the xmlsitemap_node_form_alter() function).
Comment #7
KAP10 commentedI 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.
Comment #8
avpadernoThe suggested fix is wrong, as the
xmlsitemap_node_form_alter()present in xmlsitemap.module should bexmlsitemap_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.