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.
If PHP error reporting is set to include E_STRICT, a php strict warning occurs in ctools_content_render():
Creating default object from empty value in (line 276 of /.../ctools/includes/content.inc).
Looks like this is somehow caused by an empty panel on our website but not sure if this is therefore a panels bug, so reporting it to the ctools project.
Comment | File | Size | Author |
---|---|---|---|
#7 | ctools-978676-7-D6.patch | 498 bytes | mikeytown2 |
#4 | fix-content-notice.patch | 521 bytes | amitaibu |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedHmm. It's possible that this fixes it, just prior to the line above:
However, I'd want to be sure it doesn't break anything when that actually happens.
Are you able to reproduce this situation still?
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedComment #3
amitaibuI'm able to reproduce it. It happened when calling views_content_views_panes_content_type_render() and ctools_entity_field_content_type_render() -- it seems those function might return as-well.
Comment #4
amitaibuFor drush-make here's the patch.
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted and pushed upstream.
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedGot the same error in 6.x
Here is the patch for it.
Comment #8
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted the d6 patch. Thanks!