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

  1. Enable both the filehash and config_readonly modules
  2. Configure config_readonly to enable/enforce via settings.php `$settings['config_readonly'] = TRUE`
  3. Visit /admin/config/media/filehash to see the error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

timwood created an issue. See original summary.

timwood’s picture

Issue summary: View changes
mfb’s picture

It 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 :)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.