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
Comment #2
robinmofo commentedPatch attached.
Comment #4
daniel.czegledi commentedI tested it on with 7.3.5 version and it's working.
Comment #5
damienmckennaComment #6
japerryHuh. I wonder what all that broke. Typo fixed!