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

bowmo’s picture

dived 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

  $terms = _taxonomy_menu_get_node_terms($node);

seems to be the correct fix.

dstol’s picture

Status: Active » Needs review
OldAccount’s picture

#1 worked for me, thanks!

dstol’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Needs review » Fixed

This has been fixed. It'll be in 7.x-1.x soon.

Status: Fixed » Closed (fixed)

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