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.

Comments

dsnopek’s picture

Title: Getting: Warning: Illegal offset type en views_add_contextual_links() on last update » Warning: Illegal offset type en views_add_contextual_links()
Version: 7.x-1.6 » 7.x-1.x-dev
Status: Active » Needs review
Issue tags: +panopoly
StatusFileSize
new737 bytes

Here 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!

gmclelland’s picture

Patch worked for me.

damienmckenna’s picture

Status: Needs review » Reviewed & tested by the community

RTBC.

dadderley’s picture

@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

RKopacz’s picture

Did this make it into 3.10? I just updated from 3.8 to 3.10 and am getting this error

RKopacz’s picture

Oops, sorry disregard #5 just saw it applys to ctools, patch applied and works, thank you!

spleshka’s picture

Confirm that patch works.

xaa’s picture

working. thank you.

japerry’s picture

Status: Reviewed & tested by the community » Fixed

Looks good here. Fixed!

  • japerry committed 72953e2 on 7.x-1.x authored by dsnopek
    Issue #2416589 by dsnopek, miguel_angel: Warning: Illegal offset type en...
dsnopek’s picture

Hrm. 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). :-/

flashwebcenter’s picture

Tha patch was applied to cTools 1.7

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.