Problem:

The module completely crashes and the administration page is no more available if a node type has been deleted which is used by a menu position rule.

How to reproduce:

  • Create a menu positon rule for a content type
  • Delete that content type
  • Visit the menu position administration page

Proposed solution:

Delete the dependent menu position rule if a node type was deleted via https://api.drupal.org/api/drupal/modules!node!node.api.php/function/hoo...

Related:

We should check if the same problem exists for taxonomy terms or other dependencies.

Workaround:

Delete the affected menu position rules from the database manually.