Got pink PHP messages:
Notice: Trying to get property of non-object in _exclude_node_title() (line 177 of C:\wamp\www\drtest\sites\all\modules\exclude_node_title\exclude_node_title.module).
Notice: Undefined index: in _exclude_node_title() (line 191 of C:\wamp\www\drtest\sites\all\modules\exclude_node_title\exclude_node_title.module).
when a requested page is not found and logged in as administrator.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dshirkalin’s picture

A simple fix is to add
if (!$node || !$node->type) return FALSE;
before
$node_type = $node->type;
in exclude_node_title.module.

thatjustin’s picture

Can we get this rolled into an update?

thatjustin’s picture

gabrielu’s picture

Status: Active » Closed (fixed)

Added to next release. Thanks @thatjustin for the patch. It seems the node is not loaded correctly.

Gabriel