Problem/Motivation
The constructor of the Drupal\acquia_purge\AcquiaCloud\PlatformInfo class reads from a setting called reverse_proxies. But it is actually reverse_proxy_addresses. This isn't a D7-ism either, the value was always the same name. For finding and reporting the issue, the credit goes to Matt Glaman.
Steps to reproduce
- In your settings.php file uncomment these lines:
$settings['reverse_proxy'] = TRUE;
$settings['reverse_proxy_addresses'] = ['a.b.c.d', 'e.f.g.h/24']; - In your debugger set a breakpoint at
\Drupal\acquia_purge\AcquiaCloud\PlatformInfo::__construct() - On the /admin/config/development/performance/purge page try to add an „Acquia Cloud” type of purger plugin
- The debugger shows that variable
reverse_proxiesdoes not get a value which is bad:
Proposed resolution
Fix the naming mistake when reading from site settings.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| 3404644.png | 243.26 KB | baluertl |
Issue fork acquia_purge-3404644
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
baluertlComment #6
japerry