Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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__);
?>
Comment | File | Size | Author |
---|---|---|---|
#2 | authcache_p13n-frontcontroller_docroot-2075619-2.patch | 575 bytes | nicksanta |
Comments
Comment #1
nicksanta CreditAttribution: nicksanta commentedUpdating title
Comment #2
nicksanta CreditAttribution: nicksanta commentedAttached is a patch version of the change in the original issue.
Comment #3
znerol CreditAttribution: znerol commentedThanks for the report. I modified the regex such that it works for both (sites as well as profiles directory).
Commit: 539497e