If authcache is located in the profiles directory rather than the sites directory, it can not find the drupal root and thus fails with a PHP error.

<?php
// From authcache/modules/authcache_p13n/frontcontroller/index.php
$drupalroot = preg_replace('|(/sites/([^/]+))?/modules(/.*)?/authcache_p13n/frontcontroller/index.php$|', '', __FILE__);
?>

I am not a regex master so have not yet devised a proper solution, but in the mean time I've gotten around it by changing that line to this:

<?php
$drupalroot = preg_replace('|(/profiles/([^/]+))?/modules(/.*)?/authcache_p13n/frontcontroller/index.php$|', '', __FILE__);
?>
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nicksanta’s picture

Title: authcache_p13n frontcontroller index.php can not be found if authcache module is in profiles directory » modules/authcache_p13n/frontcontroller/index.php can not find Drupal root if authcache module is in profiles directory

Updating title

nicksanta’s picture

Attached is a patch version of the change in the original issue.

znerol’s picture

Status: Active » Fixed

Thanks for the report. I modified the regex such that it works for both (sites as well as profiles directory).

Commit: 539497e

Status: Fixed » Closed (fixed)

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