The string "!php/const Drupal\auto_username\AutoUsernamePunctuationOptions::CASE_LEAVE_AS_IS" could not be parsed as a constant.

Created on 16 August 2024, 3 months ago
Updated 17 August 2024, 3 months ago

Problem/Motivation

After updating from 1.5 to 1.6 via Composer, I have started seeing those errors every time I'm installing any module using the admin back-end. When using drush the same thing happens.

Please see the exact error message:

Drupal\Core\Config\UnsupportedDataTypeConfigException: Invalid data type in config auto_username.settings, found in file modules/contrib/auto_username/config/install/auto_username.settings.yml: The string "!php/const Drupal\auto_username\AutoUsernamePunctuationOptions::CASE_LEAVE_AS_IS" could not be parsed as a constant. Did you forget to pass the "Yaml::PARSE_CONSTANT" flag to the parser? at line 5 (near "aun_case: !php/const Drupal\auto_username\AutoUsernamePunctuationOptions::CASE_LEAVE_AS_IS") in Drupal\Core\Config\FileStorage->read() (line 118 of /var/www/devel.centrummedyczne-zuza.pl/web/core/lib/Drupal/Core/Config/FileStorage.php).

I have also tried to update to the devel version but no joy.

🐛 Bug report
Status

Active

Version

1.6

Component

Code

Created by

🇦🇺Australia zimny

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

Comments & Activities

Production build 0.71.5 2024