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.

Files: 

Comments

merlinofchaos’s picture

Hmm. It's possible that this fixes it, just prior to the line above:

if (empty($content)) {
  return;
}

However, I'd want to be sure it doesn't break anything when that actually happens.

Are you able to reproduce this situation still?

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)
amitaibu’s picture

Status: Postponed (maintainer needs more info) » Active

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

amitaibu’s picture

Status: Active » Needs review
FileSize
521 bytes

For drush-make here's the patch.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed and pushed upstream.

Status: Fixed » Closed (fixed)

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

mikeytown2’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Closed (fixed) » Needs review
FileSize
498 bytes

Got the same error in 6.x
Here is the patch for it.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed the d6 patch. Thanks!

Status: Fixed » Closed (fixed)

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