Notice: Trying to get property of non-object in speakerdetailblock_preprocess_block() (line 42

1 Answer 1


This error occurs when you are getting language from a non object. To fix this check that whether the node is a object and check that 'language' exists in the $node or not.

if(is_object($node) && isset($node->language))

Then check the stuff that you are going to do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.