When I delete a node I get the following errors :
Notice: Undefined property: stdClass::$taxonomy in taxonomy_menu_node_delete() (line 413 of /var/www/sites/all/modules/taxonomy_menu/taxonomy_menu.module).
Warning: array_keys() expects parameter 1 to be array, null given in taxonomy_menu_node_delete() (line 413 of /var/www/sites/all/modules/taxonomy_menu/taxonomy_menu.module).
Warning: Invalid argument supplied for foreach() in _taxonomy_menu_nodeapi_helper() (line 424 of /var/www/sites/all/modules/taxonomy_menu/taxonomy_menu.module).
This happens no matter what type the node is, even if there's no taxonomy attached.
Comments
Comment #1
bowmo commenteddived into the code.
on line 413 of taxonomy_menu.module $node->taxonomy is referenced, but there is no such member of $node object. Taxonomy is fields, so they all have different names.
changed line 413 to
seems to be the correct fix.
Comment #2
dstolComment #3
OldAccount commented#1 worked for me, thanks!
Comment #4
dstolThis has been fixed. It'll be in 7.x-1.x soon.