Drupal 9.5.11
PHP 7.4.33
Installing and configuring the module works. I'm able to configure it and search for what I'm looking for.
Then, I export my config and roll out to DEV.
After importing the config on dev, the search page returns nothing and the settings page returns a php error
On search (/admin/content/scanner):
Status message
There were some errors.
Found 0 matches in 0 entities.
On settings (/admin/config/content/scanner):
The website encountered an unexpected error. Please try again later.
TypeError: Argument 2 passed to Drupal\scanner\Form\ScannerAdminForm::getEntityTypeFields() must be of the type array, null given, called in /srv/siteroot/sitename/web/modules/contrib/scanner/src/Form/ScannerAdminForm.php on line 192 in Drupal\scanner\Form\ScannerAdminForm->getEntityTypeFields() (line 284 of /srv/siteroot/sitename/web/modules/contrib/scanner/src/Form/ScannerAdminForm.php)
I exported my local database and ingested it on DEV. The module worked fine, until the next time I had to do a config import.
I saw an unexpected line:
scanner.admin_settings | Delete
I went back to local and did a cex, but no config for scanner exported.
Back to DEV, I ran the import anyway as I need to be able to import the other changes to the repo.
Now dev is again returning the php error above.
It seems like this module has config Drupal sees and needs for it to run, but it's not properly exporting on cex, nor can it recover once that config is missing.
Closed: works as designed
Code