If you have a custom 404 page with this module, the site experiences a PHP error around the menu structure. This is caused by calling the drupal_set_title in the hook_init() function. Since the page isn't found (not in the menu router) it throws an error. We should consider moving from the init function to something later in the bootstrap so the internals can setup the page that will actually be rendered. Working on a patch now.

CommentFileSizeAuthor
#1 yahoo_web_analytics_1342832_1.patch1.59 KBiLLin

Comments

iLLin’s picture

StatusFileSize
new1.59 KB

Here is my proposed solution. I moved hook_init into hook_page_build. Patch attached.