On Fresh install config pages whitescreen.

Created on 4 August 2023, over 1 year ago
Updated 18 August 2023, over 1 year ago

Problem/Motivation

When you download and enable module on Drupal 10.1+ (maybe lower too cannot confirm) when you try to visit config sync pages the site white screens with the following errors.

array_merge(): Argument #2 must be of type array, null given in /var/www/docroot/modules/contrib/config_ignore_auto/config_ignore_auto.module (line 99)

Then the config auto ignore form throws this error:

implode(): Argument #1 ($pieces) must be of type array, string given in /var/www/docroot/modules/contrib/config_ignore_auto/src/Form/Settings.php (line 101) and also line 109

Once fixing those with some null checks when you create a new block (or I assume changing any config) throws this error.

in_array(): Argument #2 ($haystack) must be of type array, null given in /var/www/docroot/modules/contrib/config_ignore_auto/config_ignore_auto.module (line 69)

Proposed resolution

If null checks are added around those couple places throwing errors, we can get past the initial errors and things work.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States josh.fabean

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @josh.fabean
  • @joshfabean opened merge request.
  • Status changed to Needs work over 1 year ago
  • πŸ‡¦πŸ‡·Argentina hanoii πŸ‡¦πŸ‡·UTC-3

    Thanks for the bug report and the MR. Although it's looks like pretty safe, I am having trouble reproducing it.

    drush eval "var_dump(\Drupal::config('config_ignore_auto.settings')->get('ignored_config_entities'));"
    array(0) {
    }

    The configuration entries should really never be null or empty string as they are set by default through the initial config.

    Also, whitelist_config_entities should never be null because core.extensions should never be auto-ignored.

    I rather try to understand why this happened to you, it doesn't look like a bug on the module

  • Status changed to Closed: cannot reproduce over 1 year ago
  • πŸ‡¦πŸ‡·Argentina hanoii πŸ‡¦πŸ‡·UTC-3

    I am gonna close this one, it doesn't look as an issue, trying out on https://simplytest.me/configure?project=config_ignore_auto just works.

Production build 0.71.5 2024