Hello,
Whenever I try to access the printer friendly page (generated by http://drupal.org/project/print ) for a panel node with a view in it, I get the error in the title. Inspecting the $element array I've noticed that there is never a '#links' key in there. Shouldn't that key be '#contextual_links' instead?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | panels-unsupported-operand-types-1803720-4.patch | 407 bytes | peacog |
Comments
Comment #1
Anonymous (not verified) commentedHi, am having same problem, did you find a solution?
Comment #2
stefan vaduva commentedYes, on sites/all/modules/panels/panels.module line 1229 change #links with #contextual_links[edit]
Please ignore my hack and see comment #3 bellow. Thanks Merlinofchaos.
[/edit]
Comment #3
merlinofchaos commentedThat fix is not correct; while it resolves the notice, it actually destroys the rendering of contextual links.
Instead, the += should be surrounded with a if (!empty($element['#links'])) which I guess can happen if for some reason the contextual links did not render (perhaps for access reasons?)
Comment #4
peacog commentedThanks for this fix. I've rolled a patch for it.
Comment #5
duit commentedThanks all:-)
Comment #6
merlinofchaos commentedCommitted and pushed (though when attaching a patch, set the status to 'needs review' to ensure patches are mroe easily seen)