Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I just installed this module and ran into the following problem. Basically it shows a blank list item with a link to vs. the actual view items. I also noticed that when I initially create the menu item I get the following error, and it starts out as disabled. So I'm assuming they are related.
Error message
Notice: Undefined index: enabled in menu_edit_item_submit() (line 422 of /var/www/modules/menu/menu.admin.inc).
It could be similar to the issue here http://drupal.org/node/1908910
Comment | File | Size | Author |
---|---|---|---|
#12 | Screen Shot 2013-04-16 at 12.47.16 PM.png | 206.75 KB | markhalliwell |
#12 | Screen Shot 2013-04-16 at 12.47.36 PM.png | 215.81 KB | markhalliwell |
Comments
Comment #1
robbt CreditAttribution: robbt commentedShowing only occurs using the Superfish block. With Nice Menus the items appears as they should. So somehow the two modules are not interacting well.
The undefined index error still happens though but is unrelated and when I enable the menu it appears as it should inside of the Nice Menu.
Comment #2
markhalliwellMenu Views will only work with Superfish 7.x-1.9-beta5 (and above), see: #1617802: Create a release from 7.x-1.x-dev to support Menu Views
As far as the notice, I haven't encountered this message at all. There could be a number of factors that is causing this. What other modules do you have installed that might affect the menu? PHP version?
Comment #3
markhalliwellComment #4
zionduc CreditAttribution: zionduc commentedNo problem with Superfish 7.x-1.9-beta5.
This error appear only when you work with Superfish 7.x-1.8.
Comment #5
zionduc CreditAttribution: zionduc commentedComment #6
markhalliwellComment #7
apoc1 CreditAttribution: apoc1 commentedSorry for opening this issue again. I had this working before with Superfish 1.8 & Menu Views 2.0. A few days ago, I've updated Menu Views to 2.1 and this bug returned: no views showing up in the Superfish menu and all paths are '/'. I rebuild permissions and rechecked my configuration, but everything should work. Any idea where to search for this problem?
Comment #8
markhalliwellPlease read the beginning of #2.
Comment #9
carajito CreditAttribution: carajito commentedI have the same error
menu_edit_item_submit() (line 422
I not using Superfish
And I have menu_block and Menu Views --dev
Comment #10
sportel CreditAttribution: sportel commentedI'm also having the same error. I noticed that when adding a new link to a menu, and setting it to "view" and checking "Enabled" and hit "Save", this new menu link (view) isn't set to Enabled. This is when the error is shown. Once I check "Enabled" on the menu links page (admin/structure/menu/manage/main-menu), the error disappeared and didn't come back. But, the newly made Menu View has
.../<view>
as a path, like this issues title says.It's all easily recreated: just go to the sandbox demo-page (link on module-page) and create a view of some articles. And than add a Menu View to the main menu.
I hope this helps solving the problems.
Mike.
Comment #11
jay-dee-ess CreditAttribution: jay-dee-ess commentedSame as #10, I am having this problem.
Comment #12
markhalliwellI will request this issue be locked after this comment.
From the project page:
I can verify that this DOES work if you use an alternative like menu_blocks: http://simplytest.me/project/menu_views/7.x-2.x?add[]=menu_block
Attaching screenshots for verification (see the highlighted source code in the bottom):
Using the Bartik rendering of the menu system:
Using Menu Block to render the menu:
Comment #13
sportel CreditAttribution: sportel commentedHi Mark,
Could you explain your comment? I don't really understand why this issue is marked as "works as designed". If the problem I described in my previous comment #10 isn't a problem, I must be doing something wrong, but I'm not sure what.
Thanks,
Mike.
Comment #14
markhalliwellThe title and beginning of this issue only pertains to "Menu items only showing vs. items from view". The supplemental error message (which wasn't really the focus of this issue at first and hi-jacked into being the focus) is technically a separate issue. That issue is indeed a real bug, but is not related to this issue at all. I created a separate issue for this over at: #1973888: Undefined index: enabled in menu_edit_item_submit().
Comment #15
sportel CreditAttribution: sportel commentedClear, thanks.
Mike.