- Issue created by @Liam Morland
- Merge request !7Issue #3410578: Do not use constant AUN_CASE_LEAVE_ASIS in auto_username.settings.yml → (Open) created by Liam Morland
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 4:52pm 22 December 2023 - 🇳🇿New Zealand jlscott
@Liam Morland: is this still a problem now that 📌 Refactor legacy code and fix phpcs issues Active has been committed?
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
I am not familiar with the
!php/const
syntax, but it looks plausible. If it does what it appears to do, then it will fix this. - 🇧🇪Belgium adiatis Belgium
I got this error on update drupal or install new module:
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.
I installed lastest dev version but #3391633 didn't solved the problem.
I changed
aun_case: !php/const Drupal\auto_username\AutoUsernamePunctuationOptions::CASE_LEAVE_AS_IS
to
aun_case: 0
error is gone.
- Status changed to RTBC
6 months ago 12:56pm 23 July 2024 - 🇫🇷France jibus
Got error when enabled the module :
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/lc.cx/web/core/lib/Drupal/Core/Config/FileStorage.php).
Set aun_case: 0 in auto_username.settings.yml fixed the issue.
Switch to major since this module cannot be installed.
- 🇮🇹Italy kris77
Set aun_case: 0 in auto_username.settings.yml fixed the issue for me too.
Thanks @adiatis @Jibus
- First commit to issue fork.
- 🇨🇦Canada leducdubleuet Chicoutimi QC
Cannot install the module without this patch on Drupal 10.3.6.
Thank you.