Problem/Motivation
When using both the filehash and config_readonly modules (enforce enabled), an exception is thrown and a 503 error returned when attempting to access the main filehash admin config screen.
Uncaught PHP Exception TypeError: "strstr(): Argument #1 ($haystack) must be of type string, Drupal\Core\Form\ConfigTarget given" at /var/www/html/docroot/modules/contrib/config_readonly/src/EventSubscriber/ReadOnlyFormSubscriber.php line 167
Steps to reproduce
- Enable both the filehash and config_readonly modules
- Configure config_readonly to enable/enforce via settings.php
`$settings['config_readonly'] = TRUE` - Visit /admin/config/media/filehash to see the error
Comments
Comment #2
timwoodComment #3
mfbIt sounds like this might be a duplicate of #3469854: Admin Page `admin/config/services/jsonapi` is not loading in test environment? If not, please re-open, thanks :)