After following the instructions, the menu is not built, no menu items are displayed.
When checking the theme information in the 'Menu items' view, the 'Row style output' file is missing; views-build-menu-row.tpl.php

This file is not included in the module. Is it missing or do I have to create it, and if so, how?

Complete error message:
warning: file_get_contents(./sites/all/modules/views_build_menu/views-build-menu-row.tpl.php) [function.file-get-contents]: failed to open stream: No such file or directory in (...)/sites/all/modules/views/plugins/views_plugin_display.inc on line 1387

Comments

steven jones’s picture

Status: Active » Postponed (maintainer needs more info)

Please confirm what versions of views and views build menu you are using, and could you also provide an export of your view so I can see what might be happening.

tomfoole’s picture

StatusFileSize
new4.7 KB

Thanks!

views version: 6.x-2.11
views build menu version: 6.x-1.x-dev

steven jones’s picture

Status: Postponed (maintainer needs more info) » Active

I've not tested the module with views 2.11, will have to do so...

What do you get in the live preview? Anything?

tomfoole’s picture

I get 3 columns with results, column names are Depth, Link title, Link path.

Link title and Link path show correct results, Depth shows "1" for all results, This should be 1 and 2 if the module follows my original menu structure.

steven jones’s picture

Depth isn't really supported in the live preview yet...

Have you run cron? Has the view actually been executed?
You can view a report here: admin/reports/views_periodic_execution

tomfoole’s picture

I ran the views_periodic_execution and cron, just did the views_periodic_execution again, no menu items have been created..

steven jones’s picture

This is possibly a compatibility issue with views 2.11, will have to investigate later...

tomfoole’s picture

Allright thanks, perhaps creating the missing file views-build-menu-row.tpl.php will solve the problem.

webadpro’s picture

I have the same problem... would it be possible to know whats the code in the file views-build-menu-row.tpl.php?

Anonymous’s picture

Priority: Normal » Critical

After following the documentation perfectly, even this page: /admin/reports/views_periodic_execution is empty. There is no "periodic view" that can be executed.

Running cron shows the following errors in watchdog dblog:

Missing argument 3 for views_include_handler(), called in C:\Inetpub\wwwroot\ccc.com\sites\all\modules\contrib\views_periodic_execution\views_periodic_execution.module on line 87 and defined in C:\Inetpub\wwwroot\ccc.com\sites\all\modules\contrib\views\includes\handlers.inc on line 48.
class_exists() expects parameter 1 to be string, array given in C:\Inetpub\wwwroot\ccc.com\sites\all\modules\contrib\views\includes\handlers.inc on line 50.
class_exists() expects parameter 1 to be string, array given in C:\Inetpub\wwwroot\ccc.com\sites\all\modules\contrib\views\includes\handlers.inc on line 94.

I also don't have this tpl.php file others are talking about.

Anonymous’s picture

In views_periodic_execution, change line 87 to:

if (views_include_handler($display_plugin['handler'], 'display', 'handler') && is_subclass_of($display_plugin['handler'], $display_type)) {

and a similar fix in views_periodic_execution.report.inc,

This solves the cron errors... but the menu items are still not created.

steven jones’s picture

Assigned: Unassigned » steven jones
Status: Active » Needs work
Issue tags: +Steven's gardening time

Yup, I need to look at this.

Anonymous’s picture

Problem seems to be that the class views_build_menu_plugin_display() is not detected with class_exists() in views' handlers.inc at views_include_handler().

The module works fine if you do something like this:

if ($display_plugin['handler'] == 'views_build_menu_plugin_display') {

instead of

if (views_include_handler($display_plugin['handler'], 'display', 'handler') && is_subclass_of($display_plugin['handler'], $display_type)) {
--

But I think we need to re-include the views_build_menu_plugin_display.inc somewhere.

steven jones’s picture

Assigned: steven jones » Unassigned
Status: Needs work » Active
soulfroys’s picture

Subscribing.

fishclic’s picture

Subscribing.

mikikiki’s picture

Title: Menu not built » Subscribing

Subscribing

steven jones’s picture

Title: Subscribing » Menu not built

Changing title back.

steven jones’s picture

@morningtime Views build menu isn't compatible with views 3 yet, views 3 isn't even in beta yet.

I'll return to fixing the original issue. I have tested successfully with views 2.11, so that's not the issue here.

steven jones’s picture

Added the template file in http://drupal.org/cvs?commit=440660, though I'm fairly sure that's not the issue either.

steven jones’s picture

Status: Active » Fixed
Issue tags: -Steven's gardening time
StatusFileSize
new4.59 KB

Ah, I see the issue. You've not followed the documentation quite right. Rather than adding a nid field and re-writing it, you've used the path field for the node. Unfortunately the URLs produced by that field have already run through the url function and so are unsuitable for use in the menu system.

I've changed the field over and re-exported the view for you. Sorry its a couple of months late.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.