This and other "Trying to get property of non-object" Notices appear when indexing mixed translated and non-translated content types.

The notices are from trying to reference $language_content->language.

$language_content can set improperly set if a node's language is LANGUAGE_NONE.

CommentFileSizeAuthor
#2 property_of_non_object-2714695-1.patch846 bytesAnonymous (not verified)

Comments

Anonymous’s picture

rsmylski created an issue. See original summary.

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new846 bytes

I've create a patch to add a check to avoid setting $language_content back to a non existing language object from LANGUAGE_NONE

drcolossos’s picture

Status: Needs review » Reviewed & tested by the community

We have this in production for almost a year without any issues