Help - this is really a showstopper.

I'm using just core D7 (no modules) and whenever I edit a page that has menu items, once the page is saved, the menu items disappear. I have to then go and "add link" to all three menus (main, nav, and manually-created footer) just to get them back.

Anyone else have this issue, and how did you solve it?

Thanks and have a god day, everyone,

- (A/L)

Comments

itangalo’s picture

I think this is the known bug, causing menu items to disappear if they can't be set from within the node edit page.

I *think* this can be mitigated by changing the node type settings and allowing the adequate menu(s) for the nodes – check out admin > structure > content types and edit the type(s) you're having problems with. Under menu settings you can select which menus can be chosen for each content type.

Just to be clear – this is not the way it is suppose to work, and there are people working on fixing it.

Good luck with future work,
//Johan Falk, NodeOne, Sweden

AngelicLight’s picture

Thanks so much.

Very nice reply.

AngelicLight’s picture

Johan, you're the best!

I was about to search for other CMS options and really about to lose faith, even after two years (on and off) of trying to learn Drupal.

I thought I was pretty set to go live with my first Drupal site and this happened and it really caused a big problem.

I think your recommendation fixed it because once I enabled all of those menus in the place you mentioned, the menu items seem to be staying now.

Thanks so much for your help!

itangalo’s picture

Great news! Thanks for taking the time to write back with positive feedback.
Happy Drupalling!
//Johan Falk, NodeOne, Sweden

bayu.iravvan’s picture

Wow, thanks. This problem gives me headaches a lot. Thank you so much.

mdubnz’s picture

Thanks Johan,
I was also perplexed by menu items disappearing and the fact only one menu was available. Hadn't realised you needed to allow menus specific to each content type.
Cheers

laz0rama’s picture

UPDATE: IGNORE THIS COMMENT.

when i go to node/add/page, there is no settings tab for menus.

when i go to admin/structure/types/manage/page, there is not settings tab for menus.

am i missing something? this is drupal 7.28.

something (not at all sure what yet) has been causing a particular top-level menu item on the main menu to disappear, even from the database.

any thoughts would be greatly appreciated.

agileware’s picture

Agileware are a team of local Drupal developers in Australia, https://agileware.com.au
Agileware support and host Drupal, CiviCRM and WordPress websites.
Contact Agileware today at https://agileware.com.au/contact

WilliamB’s picture

How can i fix it?
Still facine the same issue but i cannot set the menu in node content type since some of those content type won't be displayed in menu....

itangalo’s picture

I *think* you can work around this bug by using the Menu Block module – or so I've read somewhere.

Good luck,
//Johan Falk
**
Learn Drupal with Nodeone! Drupal 7 introduction | The Views module | Learn Page manager! | Drupal configuration learning curve | Learn Drupal coding | Rules for Drupal 6 | Theming Drupal 6 | 49 Drupal 6 modules you should know

zarkozunic’s picture

How to get main menu items back? I am using menu block to diplay subitems of main menu in left side. Some items ponitng to same node and their path field was like this"node/12?attr=value". And node 12 is PHP snipet that accepts get parameters(I used this to avoid code repetition and because of simplicity). All items that shared some node disapeared.
Pathauto is also installed. I am not sure if at some point all worked fine, i think it was. And things started go bad when while saving menu item i got warning that i didnt fill path field right(and it wasnt filled right, it had "/" on begining)
Then i tried to edit node 12(for example), and figured out that "provide menu item" is always checked even if i uncheck it and save it, it always gets back checked and pointig up to some of menu items.
then all had dissapeared.
Thanks!!!

ibrail5’s picture

i had the same problem to i'll try

jxarles’s picture

I carrefully read all your comments, and try to look for solution on the net but failed. After so man month i have this porblem, when editing any PAGE, the main menu link disapear. Then i have to create again the menu. In addition, when i have menu and submenu, when I edit the main page, all submenus disapear, INCREDIBLE!! Any idea??
Thank you

jose f’s picture

I followed instructions above and it worked. Make sure you mark your content as published.

nil.ned’s picture

Dear friend,
I've the same problem but I don't undersatnd what is the solution... any Idea?

stuarteske’s picture

I am building a new multi domain site with the Bootstrap theme at its core. I am using 4 menus in total, and the main menu items disappear on the relevant content save. The same links are also present within the footer menu, and those links do not get deleted. I have to add them back into the main menu every after save. Annoying, anyone knows the line of code which is removing the link on node save?