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?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | undefined-properties.patch | 975 bytes | BlakeLucchesi |
| #1 | Screen shot 2011-04-29 at 1.54.21 AM.png | 31.37 KB | BlakeLucchesi |
Comments
Comment #1
BlakeLucchesi commentedAttached 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.
Comment #2
BlakeLucchesi commentedComment #3
Letharion commentedComment #4
merlinofchaos commentedI 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.