If I create a new Panel Page (with a static path like mypath/hello/world), without a menu entry it is creating a link menu_links with a menu_name of 'primary-links' that doesn't show up in the menu system, only in the db (hidden = -1).
Should it be doing this?
I don't think it was doing this as I created many other panel pages. Now whenever I try to create a menu item (in primary-links) through panels it will not show up, and if I try to create a menu through the menu system it shows up, but I believe the old menu entry in menu_links gets picked up when I try to render the menu at a certain level. If I delete the menu_links entry that was getting created in the db, my new menu entry appears to work correctly.
It seems like somehow the system was working, and then through the process of updating/adding/removing menu items this started happening....
Any help would be appreciated, I'm not sure if this is reproducible, but maybe for starters someone could verify that when they create a new panel page with a static path does it create an entry in the menu_links for primary-links by default? If not what the heck is going on?
Comments
Comment #1
jmather commentedI think this is slightly related to this, and it probably isn't a panels issue, but I'm not sure..
http://drupal.org/node/298785
I think what may have happened is I might have deleted a panel page that had a menu path like /mypath/path1, and their was another menu item that had the same path, somehow the menu got divorced from the menu tree, so any downpath item would not show up... so if I put something like mypath/mypath2 it shows, mypath/path1/anything will not show..
Anyways, basically I have a hosed menu system, thank goodness for VM's and Dev machines ;)
If anyone has any ideas or can find the exact bug to this it would be much appreciated.
Comment #2
merlinofchaos commentedThis sounds like a bug in the menu system. I hear from people occasionally that this kind of weird stuff happens. Try removing the entry from the database and then submitting admin/build/modules page to force a menu rebuild and see if it recurs?
Comment #3
jmather commentedI was able to fix the problem by deleting the orphaned menu item in menu_links through mysql. Once that was gone all the downpath menu items attached themselves to their nearest ancestor (don't ask me why)...I then was able to repair the menu system.
If anyone hits this again...basically what I think happend:
1) Created a panel page and accidentally put a menu entry that already existed into the panel menu entry at a mid level path in the menu system.
2) I then somehow (don't remember) deleted one of these menu items and the whole downpath menu tree dissapeared (but was still in menu_links)
3) Once I deleted the errant menu item, everything worked again..