Closed (fixed)
Project:
XML sitemap
Version:
6.x-2.x-dev
Component:
xmlsitemap_taxonomy.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
24 Aug 2009 at 20:51 UTC
Updated:
8 Sep 2009 at 19:30 UTC
There's a fatal error when deleting a term. I was cleaning up my free-tagging vocabulary, removing any terms with no corresponding nodes.
Fatal error: Unsupported operand types in /sites/all/modules/xmlsitemap/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module on line 180
I don't have any other taxonomy related modules, as far as I know.
Comments
Comment #1
andrewmacpherson commentedMarking as critical since it's a fatal error.
The (obvious) work around is to temporarily disable the XML sitemap taxonomy module, delete some terms, and re-enable the module.
Comment #2
dave reidI'm on it.
Comment #3
dave reidThanks for the report. This internal taxonomy.module form workflow is just horrible, but I think I've got it fixed in CVS now. I tested deleting a term and it worked. Hopefully taxonomy.module can or is already fixed up in Drupal 7.
Comment #4
andrewmacpherson commentedForm API isn't my strong point, but will it be okay to change line 180 from:
$form['submit'] += array('#weight' => 50);to:
$form['submit']['#weight'] = 50;Tested and seems to work. Will roll patch soon. (There are some other instances of the += operator that probably want looking at, too.)
Comment #5
dave reidThe change in #4 wouldn't be enough, because you'd see that the XML sitemap fieldset would be added to the delete confirm form, which doesn't make sense. This is fixed in CVS now.
Comment #6
andrewmacpherson commentedThanks! Looks like we're both scratching this one at the same time.
Comment #7
EvanDonovan commentedOk. I can report that the CVS fix works. Here's what it is, for anyone who wants to fix this error, without pulling down an entirely new version of the module: