Hi,
I tried to delete a taxonomy term and I had a fatal error :
PHP Fatal error: Cannot use object of type stdClass as array in /home/appli/current/src/sites/all/modules/contrib/xmlsitemap/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module on line 84
In the file xmlsitemap_taxonomy.module, the form do not enter into the conditional below :
if ($form['name']['#type'] == 'value') {
// If this is the delete form, do not add our form elements.
return;
}
After debugging, I found that the $form['name']['#type']
was never set to 'value' but to 'hidden'
Moreover, I have a $form['delete']['#type']
which is set to 'value'
.
I changed $form['name']['#type']
by $form['delete']['#type']
in the conditionnal and I was able to delete my taxonomy.