While chasing down a Creating default object from empty value warning, I found the following error in panels_renderer_standard::render_pane_content():

Line 532
      $content = ctools_content_render($pane->type, $pane->subtype, $pane->configuration, array(), $this->display->args, $this->display->context);
Line 548
      $content->css_id = check_plain($pane->css['css_id']);
Line 553
      $content->css_class = check_plain($pane->css['css_class']);

The following one-line patch fixes the problem by casting the return value of ctools_content_render() to an object.


merlinofchaos’s picture

Status:Needs review» Fixed

Hmm. I'm not entirely sure that just casting it to an object is enough. This will still run into notices with the type/subtype not being set. Nevertheless I have committed this, it should be a start.

merlinofchaos’s picture

Fixed this in D6 branch too.

Status:Fixed» Closed (fixed)

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

  • Commit 8b9c1ce on 7.x-3.x, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    Issue #1241064 by pillarsdotnet: Ensure content object returned by...