Closed (fixed)
Project:
Object cache
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2011 at 16:25 UTC
Updated:
15 Dec 2011 at 09:00 UTC
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
Comment #1
swentel commentedMakes sense, committed and pushed.