When entering the "content edit" page of a minipanel which is used in site_template i got a PHP error:
Fatal error: Call to undefined method stdClass::render() in panels.module on line 1013
these are lines 1000-1014 of panels.module
function panels_render_display(&$display, $renderer = NULL) {
ctools_include('display-render', 'panels');
ctools_include('plugins', 'panels');
ctools_include('context');
if (!empty($display->context)) {
if ($form_context = ctools_context_get_form($display->context)) {
$form_context->form['#theme'] = 'panels_render_display_form';
$form_context->form['#display'] = &$display;
$form_context->form['#form_context_id'] = $form_context->id;
return drupal_render_form($form_context->form_id, $form_context->form);
}
}
return $display->render($renderer);
}
Comments
Comment #1
sleeping_at-work- commentedI'm using Panels Everywhere for admin section, and I'm not overriding the page.tpl.php
If I remove the minipanel from the site_template content, the "content edit" page of the minipanel render correctly
Comment #2
sleeping_at-work- commentedI've tried changing theme in admin/settings/admin and always got the same error, but using Tinsel as administration theme I finally got the page rendering correctly
I'm trying to point out why using Tinsel I didn't run into the bug (well, I know it gives support to Panels Everywhere, but I'd like to understand where it differs from my custom theme)
Comment #3
merlinofchaos commentedThis is a problem with Mini Panels that's already fixed in -dev. It's the same problem that occurs if the mini panel is in a block. #861426: Call to undefined method stdClass::render() in panels.module on line 992
Comment #4
sleeping_at-work- commentedCouldn't find that old issue before... I've tried -dev release and it's all ok! thanks
Would you suggest to use -dev release of Panels Everywhere in combination with -dev releases of Panels and Ctools? I've also opened a support request http://drupal.org/node/905250