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
Comment #1
jludwig commentedAre 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?
Comment #2
marcingy commentedMoving to postponed and dropping priority as this does not seem to be a core issue.
Comment #3
LizD commentedYes 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.
Comment #4
LizD commentedI have tracked it down to Hierarchical Select Menu 7.x-3.0-alpha5. I will report the issue there. This applies to both issues.
Comment #5
LizD commentedPlease see last comment. Issues is caused by Hierarchical Select Menu 7.x-3.0-alpha5.
Comment #6
pixelsnap commentedSimilar 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.
Comment #7
mwangi commenteddisabled Hierarchical Select Menu and my site is now back in action