Just launched this module yesterday in replace of cache_consistent and redis and ran in to a fatal today:

PHP Fatal error: Call to undefined function menu_get_item() in apdqc/apdqc.module on line 867.

Of course that function exists in menu.inc but for some reason it looks like hook_init() was called before menu.inc.

/js.php

Exception: Uncaught exception 'Exception' with message 'theme() may not be called until all modules are loaded.' in /includes/theme.inc:1017
Sample stack trace

in theme called at sites/all/modules/contrib/logging_alerts/emaillog/emaillog.module (175)
in emaillog_mail called at /includes/mail.inc (161)
in drupal_mail called at sites/all/modules/contrib/logging_alerts/emaillog/emaillog.module (143)
in emaillog_watchdog called at ? (?)
in call_user_func_array called at includes/module.inc (905)
in module_invoke called at /includes/bootstrap.inc (1740)
in watchdog called at /sites/all/modules/contrib/apdqc/apdqc.module (884)
in apdqc_init called at ? (?)
in call_user_func_array called at /includes/module.inc (934)
in module_invoke_all called at /js.php (244)
in js_execute_callback called at /js.php (43)

Setting as major because Fatal's are nasty.

Comments

joelpittet created an issue. See original summary.

joelpittet’s picture

Status: Active » Needs review
StatusFileSize
new1.84 KB

My guess is maybe it's the js module with a lighter bootstrap or possibly authcache has loaded a lighter bootstrap.

I'm determined to track it down here's a patch in hopes to catch where that is coming from.

joelpittet’s picture

Issue summary: View changes

Yup it was the JS module.

mikeytown2’s picture

Good to know. This will hopefully not be an issue once I create my own menu.inc file #2495985: Implement path_inc & menu_inc

mikeytown2’s picture

Status: Needs review » Fixed
StatusFileSize
new1.45 KB

Code in question has to do with the heuristics of prefetching cached items. If it doesn't run for these requests, no big deal. Committed this patch

Status: Fixed » Closed (fixed)

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