There are places that call node_page_title() that do not pass in a node object, and thus cause a php notice.

To replicate: create a menu link in "main-menu" that has a node page as the path. Create a child item that also has a node page as the path.

Call: menu_build_tree("main-menu", array("expanded"=>array($mlid))); where $mlid is the parent menu item id.

( menu_build_tree("main-menu", array("only_active_trail"=>true)); throws a SQL error or else i would use that )

CommentFileSizeAuthor
#1 remove_notice_node_page_title.patch104 bytesbblake

Comments

bblake’s picture

StatusFileSize
new104 bytes

This isn't the root of the problem, but it solves the notices being displayed.

bblake’s picture

Disregard that last comment

bblake’s picture

Status: Active » Closed (fixed)

Appears fixed as of rc2

somanyfish’s picture

Version: 7.0-beta2 » 7.8

I am observing this error in in 7.8. It occurs when I have both the Search by Page and Menu Block modules enabled and call cron by the page view trigger. Running cron via admin/config/system/cron or drush does not cause the error. I have reported it in both module's issue queues:

Trying to get property of non-object in node_page_title" error when cron runs from page view trigger.
Cron reports indexing/rendering errors

rooby’s picture