hi, i have a big problem with views and my site (Drupal 7). When i've created a new view (or change a old one) the system doesn't let me to theme the Row style output.
It shows in the edit mode in a view:
Row style output: .tpl.php, --front-headline.tpl.php, --default.tpl.php, --default.tpl.php, --block.tpl.php, --front-headline--block.tpl.php
But Display and style output are normal with the names.
When i look in thev recent log messages i can see this error that shows every time:
Notice: Undefined index: theme in views_plugin->theme_functions() (line 512 of /Users/Oscar/Sites/pfss/sites/all/modules/views/includes/plugins.inc).
Type: php
Location: http://localhost/admin/structure/views/ajax/display/front_headline/block...
Referrer: http://localhost/admin/structure/views/view/front_headline/edit?render=o...
I've tried to make a a lot of clean installations with drupal, views and ctools. Both the dev and recommended release, without success, all time the same error and problem.
What can i do?
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2012-05-26 at 00.01.01.png | 44.12 KB | oscarandersson92 |
Comments
Comment #1
merlinofchaos commentedSo what row style (The "Show" setting in the view) are you using?
Comment #2
oscarandersson92 commentedIm using the content style.
Comment #3
oscarandersson92 commentedWhat can the problem be? Why do i get this error?
Comment #4
hwasem commentedI'm also getting this error using the Format Show: Content | Teaser. I don't get the error when I use the Fields format.
I discovered this error when I changed the Format Show value from Fields to Content. I changed the views template file and was going to rescan the theme files. I get the error after opening the Theme: Information link.
Did you ever find the cause for the error?
Comment #5
kobnim commentedI am attempting to follow the tutorial here for creating a row-plugin. Here is the example code:
I created a view, and under 'format', I set 'show' to 'Unformatted'.
When I attempt to display my view, I get the following error:
Does anyone know what may be causing this problem?
Thanks very much
Mindy
P.S. I tried deleting the following code from function options_form(), but that did not resolve the problem:
Comment #6
kobnim commentedNever mind. My mistake. I had commented out this 'theme' line in hook_views_plugins(), in an earlier attempt to debug a different problem:
The "undefined index" error message went away when I uncommented this line.
I don't believe my resolution sheds any light on the problem others are having, so I am leaving this issue "active".
Comment #7
stephenrobinson commentedI get this error as well, and a defective pager for one of my views using
Comment #8
Anonymous (not verified) commentedThis patch https://www.drupal.org/node/1491082#comment-5755586 fixed the issue for me.
Comment #9
colanSee #1491082: Undefined index: theme in theme_functions() (line 512 of views/includes/plugins.inc).