I recently upgraded to 7.x-3.4 and the Panel variant which i had working previously now fails with the error:

Fatal error: Unsupported operand types in E:\wamp\www\mit\includes\common.inc on line 4437

when i try to select Content page in the panels editor

it was a pretty simple qtab setup but to be safe i created another even simpler qtab with only the masquerade block in it; adding this to a new panels variant causes same error in ajax response to adding content.

also, i have numerous other variants for this panel which do not uses qtabs; these all work fine.also, the actual variant which i can not edit; still works to override my node type.

Comments

liquidcms’s picture

going back to earlier version (3.0) does not fix the issue

liquidcms’s picture

Title: Fatal error: Unsupported operand types in E:\wamp\www\mit\includes\common.inc on line 4437 » quicktabs does not work in Panels with latest version of ctools

latest version of quicktabs but backing revving ctools to previous rel (1.1) and this is fixed.. so changing title

mropanen’s picture

A thing that's changed in ctools since version 1.2:
ctools_block_content_type_admin_info, located in file ctools/plugins/content_types/block, used to make a call $block = (object) module_invoke($module, 'block', 'view', $delta); which is wrong, and they fixed it in dev.

So in fact Quick Tabs has always been incompatible with Panels's Content screen, but it hasn't shown it because of a bug in ctools :)

I quick-fixed this problem by changing

if (!empty($block->content)) {
    $block->content = filter_xss_admin($block->content);
  }

to

if (!empty($block->content)) {
    $block->content = filter_xss_admin(drupal_render($block->content));
  }

but I have a feeling that this is not the right way to do it.

broeker’s picture

fgm’s picture

jaskho’s picture

If there's a reasonably straightforward means of addressing this from the Quick Tabs end I may be able to get funding to do the work. I'm not familiar enough with the Panels API or the Quick Tabs codebase to assess this, though. Would anyone be willing to make that assessment, and (assuming it is in fact reasonably doable) point me in the general direction?

No Sssweat’s picture

Quick tabs works perfectly in panels for me.

Jeroen94’s picture

I'm having exactly the same problem with the Panels 7.x-3.3 version. When I create a Quick Tab (no matter what it's containing) and try to add it to a panel, I get a fatal error, just like the one mentioned in the issue (it refers to line 4474 with me).

How can I solve this? Please help!

Jeroen94’s picture

Version: 7.x-3.x-dev » 7.x-3.6
Issue summary: View changes
Jeroen94’s picture

Status: Active » Fixed

Everything works fine again after the last update from Panels.

Status: Fixed » Closed (fixed)

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