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
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | test_view_export_fixed.txt | 4.59 KB | steven jones |
| #2 | views-build-menu-export.txt | 4.7 KB | tomfoole |
Comments
Comment #1
steven jones commentedPlease 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.
Comment #2
tomfoole commentedThanks!
views version: 6.x-2.11
views build menu version: 6.x-1.x-dev
Comment #3
steven jones commentedI've not tested the module with views 2.11, will have to do so...
What do you get in the live preview? Anything?
Comment #4
tomfoole commentedI 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.
Comment #5
steven jones commentedDepth 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
Comment #6
tomfoole commentedI ran the views_periodic_execution and cron, just did the views_periodic_execution again, no menu items have been created..
Comment #7
steven jones commentedThis is possibly a compatibility issue with views 2.11, will have to investigate later...
Comment #8
tomfoole commentedAllright thanks, perhaps creating the missing file views-build-menu-row.tpl.php will solve the problem.
Comment #9
webadpro commentedI have the same problem... would it be possible to know whats the code in the file views-build-menu-row.tpl.php?
Comment #10
Anonymous (not verified) commentedAfter 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:
I also don't have this tpl.php file others are talking about.
Comment #11
Anonymous (not verified) commentedIn views_periodic_execution, change line 87 to:
and a similar fix in views_periodic_execution.report.inc,
This solves the cron errors... but the menu items are still not created.
Comment #12
steven jones commentedYup, I need to look at this.
Comment #13
Anonymous (not verified) commentedProblem 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.
Comment #14
steven jones commentedComment #15
soulfroysSubscribing.
Comment #16
fishclic commentedSubscribing.
Comment #17
mikikiki commentedSubscribing
Comment #18
steven jones commentedChanging title back.
Comment #19
steven jones commented@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.
Comment #20
steven jones commentedAdded the template file in http://drupal.org/cvs?commit=440660, though I'm fairly sure that's not the issue either.
Comment #21
steven jones commentedAh, 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
urlfunction 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.