I have found what seems to be a bug in authcache, which is that if you were logged in to the site, but your session has expired, the following error appears:

Fatal error: Call to undefined function module_list() in .../bootstrap.inc on line 1090

Viewing the site with a new anonymous session (e.g. with chrome's incognito mode), or clearing all cookies and site data, both prevent the error from occurring. I assume this is because the error is caused by an expired session cookie. I have tried switching to the latest 1.x-dev version, and this makes no difference. I am using authcache with FileCache.

I think the bug is in authcache because disabling the authcache module prevents the error from occurring. If you clear the cache and then view the site, the error does not occur the first time the page is generated, but does once it is in the cache.

Comments

znerol’s picture

Category: Bug report » Support request
Status: Active » Fixed

This is most probably an unfortunate interaction between Authcache and the built-In page cache. Please disable the built-in page cache by unchecking Cache pages for anonymous users in Administration » Configuration » Development » Performance.

Btw, Authcache 7.x-2.x warns you when it detects such misconfigurations.

highfellow’s picture

Status: Fixed » Active

I have just checked this, and that option is disabled already. Caching for anonymous users is enabled only in the authcache tab, not on the main tab.

znerol’s picture

Please also remove the page_cache_without_database setting from your settings.php. Note, the code path leading to the failure almost certainly involves _drupal_bootstrap_page_cache. That's the only place where bootstrap_invoke_all is called (that's where the fatal error occurs).

highfellow’s picture

Status: Active » Fixed

I've removed that setting from settings.php, and it's now working OK - thanks.

Status: Fixed » Closed (fixed)

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