I'm getting Notice: Undefined variable: columns in include() (line 28 of ...panels/templates/panels-add-content-modal.tpl.php).
And the accompanying: Warning: Invalid argument supplied for foreach() in include() (line 28 of ...panels/templates/panels-add-content-modal.tpl.php).
Patch to come.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | panels-add_content-1516644-3.patch | 2 KB | twistor |
| #1 | panels-add_content-1516644-1.patch | 2.02 KB | twistor |
Comments
Comment #1
twistor commentedRather than check in the tpl file, just make sure everything is initialized in add-content.inc
This also fixes:
Comment #2
twistor commentedComment #3
twistor commentedArg. A little overzealous with removing variables.
Comment #4
zilverdistel commentedThanks for looking into it! Some further thoughts on the patch, which fixes the problem for me ...
We only really need this line to solve the issue, I think.
Strange how this got in the code. Function range() needs at least 2 arguments.
This is definitely a bug, but maybe it should be addressed in a separate issue/patch?
It's better not to touch code in your patch that doesn't involve the issue ...
Comment #5
justin.koh commentedUsing Panels 7.x-3.2 on a new-ish site, panels was working fine but today discovered this problem. Not sure when the problem started happening but patch in #3 works for me.
Comment #6
twistor commented#933748: Theme 'Add content' Modal box
Comment #7
twistor commentedComment #8
Ivanhoe123 commented#3 worked for me
Thanks!
Comment #8.0
Ivanhoe123 commentedUpdated issue summary.