Thought I'd post an issue here to link it to the greater core issue #918356: WSOD when drupal_get_title called during hook_init and custom 403 or 404 pages are being used
To reproduce, take a stock d6 with token & opensearch, enable both and go to an arbitrary url to trigger a 404 page.
Comments
Comment #1
avpadernoSince version 6.x-1.4-beta1, the module checks if Drupal is returning a 404 or 403 error page.
May you verify that version is not causing the WSOD anymore?
Comment #2
Anonymous (not verified) commentedComment #3
Evan King commentedI've found the same issue, using 6.x-1.4-beta1
The problem seems to be that when we get the headers on line 19, the string only contains "Content-Type: text/html; charset=utf-8" - no response codes yet.
I've tried increasing the weight of the module so that it runs last, but this made no difference.
Comment #4
dstolYeah, same results as suedegambit, it still fatals.
Comment #5
Anonymous (not verified) commentedI think that
hook_init()should be replaced fromhook_preprocess_page(); doing so, the headers would contain the values the module is looking for, and the problem of looking for the value of tokens too early should be resolved too.Comment #6
avpadernoI am closing this issue, which is for a not supported Drupal version.