I'm using node edit panels and one of my content types is getting a fatal error:

"PHP message: PHP Fatal error: Cannot use object of type ctools_context as array in /sites/all/modules/contrib/panels/panels.module on line 1124"

Checking the code, there appears to be a typo:

if (empty($form_context->form['#theme_wrappers']) || !in_array('form', $form_context->form['#theme_wrappers'])) {
    $form_context['#theme_wrappers'][] = 'form';
}

Should be:

if (empty($form_context->form['#theme_wrappers']) || !in_array('form', $form_context->form['#theme_wrappers'])) {
    $form_context->form['#theme_wrappers'][] = 'form';
}

Comments

frobinrobin created an issue. See original summary.

robinmofo’s picture

Status: Active » Needs review
StatusFileSize
new668 bytes

Patch attached.

daniel.czegledi’s picture

Status: Needs review » Reviewed & tested by the community

I tested it on with 7.3.5 version and it's working.

damienmckenna’s picture

japerry’s picture

Status: Reviewed & tested by the community » Fixed

Huh. I wonder what all that broke. Typo fixed!

  • japerry committed c539c4f on 7.x-3.x authored by frobinrobin
    Issue #2609528 by frobinrobin: Node Edit Panel: Cannot use object of...

Status: Fixed » Closed (fixed)

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