After editing a node which has a menu item assigned to the Main Menu that was created via the menu module, the menu item vanishes. This occurs even though the content type Basic Page has the Main Menu enabled in the content type as available. No error message is generated, the menu item simply vanishes and must be put back after every edit.

I do not know whether this would occur if the menu item were created via the node rather than the menu because I have been unable to create a menu item from node.add or node/edit. See: /node/1500244

I believe this error started after updating to 7.12. I have confirmed it on 3 different websites using three different base themes.

Comments

jludwig’s picture

Are you having the same problem you posted in #1500244: Menu item does not create from node/edit or node/add even though available menu is assigned on the three sites that are having this problem? If so, I suggest we merge the two issues because that would definitely be the culprit. I cannot reproduce this problem or the one in the aforementioned issue, so I'm going to just take a wild guess here:

Can you post the results of putting a var_dump($form_state['values']['menu']) right above line 723 of
/httpdocs/modules/menu/menu.module?

Also, is it happening on any fresh installs for you? If not, what are the common modules shared by the three sites?

marcingy’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Moving to postponed and dropping priority as this does not seem to be a core issue.

LizD’s picture

Yes the issues occur together. I believe you are correct that it is not a core issue after all as I tried a fresh install today and could not reproduce it. I have a lot of modules in common on these sites. I will try adding them in one at a time and testing on the fresh install.

I can't do the var_dump right now because these are live sites that this starting happening on.

LizD’s picture

I have tracked it down to Hierarchical Select Menu 7.x-3.0-alpha5. I will report the issue there. This applies to both issues.

LizD’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Please see last comment. Issues is caused by Hierarchical Select Menu 7.x-3.0-alpha5.

pixelsnap’s picture

Status: Closed (works as designed) » Active

Similar problem when editing node content for first time, on a multilingual site. For some reason, the menu item leaves its original place in the menu hierarchy and drop to the menu root. For existing content (and since the menu item already exists anyway), if I turn off all possible menu selection options under the content type, the problem disappears. It also only seems to affect first-time edits, and not subsequent ones. Weird.

mwangi’s picture

disabled Hierarchical Select Menu and my site is now back in action

Version: 7.12 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.