Hi!

I´ve installed Node Hierarchy 6.x-2.x-dev at Drupal 6.20.
When i edit a menu on URL "admin/build/menu" ocurred this error:

Fatal error: Call to undefined function menu_overview_form() in /home/www/enefgy/sites/all/modules/external/nodehierarchy/nodehierarchy.module on line 285.

Comments

jbylsma’s picture

Assigned: jlballes » Unassigned
Priority: Critical » Normal

The menu_overview_form function is part of the core "menu" module. Even more odd is that nodehierarchy_menu_overview_form (nodehierarchy's hook into menu_overview_form) checks to see if the "menu" module is enabled, and you shouldn't have been able to get to that point unless it was. Have you had any failed updates or other weirdness that may have screwed up your core modules? At the very least, I would try downloading a fresh copy of Drupal 6.20 and replace your /modules directory with a fresh one. It'd probably be good to do a refresh of all your core Drupal files.

jlballes’s picture

I try to replace the core with a fresh copy of Drupal 6.20 and the error persists.
I use others modules as Menu Access, DHTML Menu, Date...

jbylsma’s picture

Can you try disabling the other modules and seeing if node hierarchy still throws the error?

ronan’s picture

Status: Active » Fixed

The conflict was with Menu Access. Both modules are trying to override the menu edit page (admin/build/menu-customize/xxx) which means that the core menu.admin.inc file isn't being loaded automatically anymore. I fixed this issue, but whatever modifications Menu Access is trying to make are being overridden by Node Hierarchy. That's unfortunately the nature of trying to modify core behavior where there is no real API to do so. I hope this doesn't make Menu Access unusable for you.

Status: Fixed » Closed (fixed)

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

murz’s picture

Component: Code » Drupal/PHP Code

Same problem with 7.x-2.x-dev version and Drupal 7.x fresh install: minimal install profile + Views + CTools + NodeHierarchy.
Can you port this patch to 7.x?

murz’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Status: Closed (fixed) » Active
murz’s picture

Issue solved when I enable "Menu" module, so you must add dependency of this module.