Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
panels_render_standard-render_pane_context.patch | 1.26 KB | pillarsdotnet | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedHmm. 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.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedFixed this in D6 branch too.