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

sleeping_at-work-’s picture

Project: Panels » Panels Everywhere
Version: 6.x-3.7 » 6.x-1.1

I'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

sleeping_at-work-’s picture

I'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)

merlinofchaos’s picture

Status: Active » Closed (duplicate)

This 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

sleeping_at-work-’s picture

Couldn'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