Getting this error whenever I try to view a page that is using panels.
These panels were activated through the page manager and affect all the pages that belong to a certain content type.
I know this is just a php warning but couldnt get rid of it, any suggestions?

Comments

BlakeLucchesi’s picture

Attached is a patch that fixes the issue. I was also receiving the issue when using contexts + views and got it when there were no view results to show.

The fix was to wrap the $content->type and $content->subtype in isset() functions, since the error is that those properties are not defined, and thus php shouts out a warning.

BlakeLucchesi’s picture

Status: Active » Needs review
Letharion’s picture

Component: Panel nodes » Panel pages
Assigned: Unassigned » merlinofchaos
merlinofchaos’s picture

Status: Needs review » Fixed

I believe all instances of anything that can cause this have been fixed.

I'd rather leave these notices in -- they indicate bad content and can help us find it.

Status: Fixed » Closed (fixed)

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