I am using EVA to display my gallery view on my gallery nodes. When I override the display output I get the following errors:
Notice: Undefined variable: title in include() (line 31 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: header in include() (line 35 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: exposed in include() (line 41 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: attachment_before in include() (line 47 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: rows in include() (line 53 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: empty in include() (line 59 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: pager in include() (line 65 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: attachment_after in include() (line 69 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: more in include() (line 75 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: footer in include() (line 79 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
Notice: Undefined variable: feed_icon in include() (line 85 of /../sites/all/themes/../templates/eva-display-entity-view--gallery--entity-view-1.tpl.php).
When I clear the cache my view displays fine, but if I refresh it disappears and I get the above erros. Any idea what could be wrong?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | allow_themeing-1205008-4.patch | 1.02 KB | girishmuraly |
Comments
Comment #1
tragic.rich commentedUpdate:
The display override works fine if I use the lowest level possible: eva-display-entity-view.tpl.php
But anything higher than that and the display breaks and I get the above errors.
Comment #2
peterpajchl commentedFacing the same issue.
When I create new custom template file for eva display, the first time (after flushing caches) it displays correctly but afterwards it throws an error "Undefined Variable".
Comment #3
girishmuraly commentedThe issue seems to be that template_preprocess_views_view() is not run.
Temporary workaround would be to place this code in the custom template file:
Comment #4
girishmuraly commentedThere was a hard dependency on eva.theme.inc even when overriding eva-display-entity-view.tpl.php to a custom tpl. The attached patch aims to fix this by removing the dependency from hook_views_plugins() as it should be free to discover and take the themeing route it wants.
Also noticed that the following are unnecessary in the .info file:
Comment #5
peterpajchl commentedThe above patch does resolve the issue for me.
Comment #6
smira commentedi can confirm that this patch fixes the issue for me as well, commit to dev imo!
ps. i patched against eva-1.1
Comment #7
simon georges commentedI can confirm the patch works as well.
Comment #8
valderama commentedpatch works, thanks!
Comment #9
mxtPatch in #4 works very well also for me.
Can this be committed please?
(has been almost a year after the first report)
Thank you very much.
Comment #10
mkadin commentedLooks good. Committed to dev branch...stay tuned for a new release. Thanks all!