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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

robbt’s picture

Showing 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.

markhalliwell’s picture

Status: Needs review » Active

Menu 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?

markhalliwell’s picture

Status: Active » Postponed (maintainer needs more info)
zionduc’s picture

No problem with Superfish 7.x-1.9-beta5.
This error appear only when you work with Superfish 7.x-1.8.

zionduc’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community
markhalliwell’s picture

Status: Reviewed & tested by the community » Closed (works as designed)
apoc1’s picture

Status: Closed (works as designed) » Needs review

Sorry 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?

markhalliwell’s picture

Status: Active » Closed (works as designed)

Please read the beginning of #2.

carajito’s picture

I have the same error

menu_edit_item_submit() (line 422

I not using Superfish

And I have menu_block and Menu Views --dev

sportel’s picture

I'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.

jay-dee-ess’s picture

Status: Closed (works as designed) » Active

Same as #10, I am having this problem.

markhalliwell’s picture

Component: Code » Documentation
Category: bug » support
Status: Active » Closed (works as designed)
FileSize
215.81 KB
206.75 KB

I will request this issue be locked after this comment.

From the project page:

What Menu Views Does NOT Do

Menu Views is NOT a theming/styling module for mega-menus. As stated above, this module is strictly a utility module for replacing menu item link with a view. Once the HTML markup is there, Menu View's job is done! Read #1794010: Menu Views is not working.

Depending on how a theme renders the primary and secondary navigation, this module may not work

because the parent items may not ever be extended (regardless whether they are checked as such in the menu item). It is strongly recommended to use one of the following modules in your theme's menu region instead (see: Use menus in Drupal 7? You need Menu block module.).

Module Integration

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:
Screen Shot 2013-04-16 at 12.47.16 PM.png

Using Menu Block to render the menu:
Screen Shot 2013-04-16 at 12.47.36 PM.png

sportel’s picture

Hi 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.

markhalliwell’s picture

The 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().

sportel’s picture

Clear, thanks.

Mike.