If full page caching is on, and a page is successfully retrieved from the cache, when the exit hook is called, recoverable fatals happen because, menu_get_object() and arg() are not yet available due to the minimal files that are loaded (I think) e.g.

PHP Fatal error: Call to undefined function menu_get_object() in /my_path/httpdocs/sites/all/modules/object_cache/object_cache.module on line 231

I just added this to object_cache_exit() which solved it.

if(!function_exists('menu_get_object') || !function_exists('arg')) {
    return;
}

Comments

swentel’s picture

Status: Active » Fixed

Makes sense, committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.