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.
Hi,
I am facing very critical issue with Views, I have enabled views and created new view it works fine. When I want to override the template for this view, it shows all existing views templates in RED colour as given below :
- Display output: views-view.tpl.php (File not found, in folder ./), views-view--test.tpl.php, views-view--default.tpl.php, views-view--default.tpl.php, views-view--page.tpl.php, views-view--test--page.tpl.php
- Style output: views-view-unformatted.tpl.php (File not found, in folder ./), views-view-unformatted--test.tpl.php, views-view-unformatted--default.tpl.php, views-view-unformatted--default.tpl.php, views-view-unformatted--page.tpl.php, views-view-unformatted--test--page.tpl.php
- Row style output: .tpl.php, --test.tpl.php, --default.tpl.php, --default.tpl.php, --page.tpl.php, --test--page.tpl.php
When I tried to debug this issue, I found there is following notices coming :
Notice: Undefined index: theme in views_plugin->theme_functions() (line 529 of C:\wamp\www\test\trunk\sites\all\modules\views\includes\plugins.inc).
I have also attached the screenshot of same, please help me to resolve this issue.
Comment | File | Size | Author |
---|---|---|---|
views_template_path_issue.png | 125.8 KB | er.pushpinderrana |
Comments
Comment #1
er.pushpinderrana CreditAttribution: er.pushpinderrana commentedI have disabled devel and devel themer module, now this error gone away.
Can anybody suggest me why devel module is conflicting with Views.
Comment #2
sam.hernandez CreditAttribution: sam.hernandez commentedI can confirm that this is a conflict with the Devel module. When it is enabled, at line 2183 in
views/plugins/views_plugins_display.inc
,$registry[$theme]['path']
is never set. When disabled,$registry[$theme]['path']
does occasionally exist.Comment #3
Robert_W CreditAttribution: Robert_W commentedThis problem still exists in combination with the latest Views and Devel module:
Devel: 7.x-1.3
Views: 7.x-3.7
Comment #4
Robert_W CreditAttribution: Robert_W commentedComment #5
basvredelingThis is still occurring even with devel disabled.
Also see: #2387159: Theme suggestion template file missing
Comment #6
PolYou can download this small module to see the problem: https://github.com/Polzme/test_style
Comment #7
promarka CreditAttribution: promarka commentedI found a solution here, related to templates defined in template.php instead of the templates directory.:
http://drupal.stackexchange.com/questions/153318/views-row-style-output-...
Comment #8
DamienMcKennaComment #9
DamienMcKennaHave not been able to reproduce this and all comments indicate something broken in the theme being used.