I ran into this problem writing a contrib module for Authcache. I've solved the problem, I'm just posting this here in case anyone else runs into the same thing. The problem was with the securepages module. The securepages module gets the path from $_GET['q']. When authcache.php is called via ajax, $_GET['q'] will be empty. An empty path will not match the securepages ignore list, and securepages will try to redirect, which will cause the ajax request to fail.

To solve this problem, add the following line to your _authcache_MODULENAME function, just before "drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);":

$_GET['q'] = '/ajax/';

I hope this saves someone some debug time. :)

Comments

Status: Fixed » Closed (fixed)

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