Hi,
I use a node display with 2 columns stacked fluid presentation.
When I put no field in the footer region, I have this error:
Notice : Undefined variable: footer_wrapper dans include() (ligne 35 dans /.../sites/all/modules/ds/layouts/ds_2col_stacked_fluid/ds-2col-stacked-fluid.tpl.php).
Notice : Undefined variable: footer_wrapper dans include() (ligne 37 dans /.../sites/all/modules/ds/layouts/ds_2col_stacked_fluid/ds-2col-stacked-fluid.tpl.php).
The error would be the same when no field is present in the header ("Notice : Undefined variable: header_wrapper dans include...").
I had no error with version 7.x-1.5 of DS, for the exact same display with the same fields. Ran db updates, cleared cache, the error remains with the dev version.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1698936-5.patch | 1.04 KB | swentel |
Comments
Comment #1
swentel commentedCan you update to the latest version, resave the layout and see if they still remain those notices ?
I currently can't reproduce the notices.
Comment #2
Louis Bob commentedI have updated to the latest version, and I still have the error.
Well actually it is a bit more complicated than what I have described: the mentioned node display contains a view in its footer.
That view itself uses Display Suites, and is managed from "Views Displays".
And it is here that the described problem occurs: when no field is present in the footer, I have the above notices, plus
is displayed in the footer part.
What I did: I added a GlobalPHP field in the view, with that code
to have a field with nothing displayed.
Then in "Views Displays" I put this GlobalPHP into the footer part. Then the error message disappears, because now there is a field in the footer.
Still it doesn't fix the issue, but as for the display, it is ok.
Comment #3
swentel commentedMarked #1733860: Notice: Undefined variable: footer_wrapper in include() (line 26 of /sites/all/modules/ds/layouts/ds_2col_stacked/ds-2col-stacke as a dupe.
Comment #4
swentel commentedTagging
Comment #5
swentel commentedThanks for the steps, this fixes the bug, committed and pushed, patch also attached.