After last update to panels 7.x-3.5 version (and ctools 7.x-1.6 version), I get this warning and notice:
Warning: Illegal offset type en views_add_contextual_links() (línea 816 de /.../sites/all/modules/views/views.module).
Notice: Trying to get property of non-object en views_add_contextual_links() (línea 816 de /.../sites/all/modules/views/views.module).
Running drupal 7.34 and views module 7.x-3.8 with Contextual links module disabled in drupal core.
Running the view involved in the preview the warning not appear, nor the notice. But it does in panels preview.
Workaround:
Set hide contextual links to YES in the advanced view options.
I've another panels which uses other views and this issue doesn't appear on them. Those views have the hide contextual links set to NO.
I've created this issue report in panels and views too.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ctools-illegal-offset-views-add-contextual-links-2416589-1.patch | 737 bytes | dsnopek |
Comments
Comment #1
dsnopekHere is a patch that fixes this. It's not written by me, but ivanjaros which he posted on this Panopoly issue: #2416775-1: Warning: Illegal offset type in views_add_contextual_links() (line 816 of ~/prj/panopoly/panopoly/modules/contrib/views/views.module)
It works in my testing!
Comment #2
gmclelland commentedPatch worked for me.
Comment #3
damienmckennaRTBC.
Comment #4
dadderley commented@miguel_angel
Thanks for the work around.
Set hide contextual links to YES in the advanced view options.
It works well.
This error happens when I have a view (view pane display) in a panel.
I am using these modules
Views 7.x-3.8
Chaos tools 7.x-1.6
Panels 7.x-3.5
Comment #5
RKopacz commentedDid this make it into 3.10? I just updated from 3.8 to 3.10 and am getting this error
Comment #6
RKopacz commentedOops, sorry disregard #5 just saw it applys to ctools, patch applied and works, thank you!
Comment #7
spleshkaConfirm that patch works.
Comment #8
xaa commentedworking. thank you.
Comment #9
japerryLooks good here. Fixed!
Comment #11
dsnopekHrm. Nothing to do about it now, but ivanjaros should have gotten credit for this! I just copied his patch over (after asking him to do it first and waiting a few days). :-/
Comment #12
flashwebcenterTha patch was applied to cTools 1.7