On web/core/lib/Drupal/Core/Form/FormElementHelper.php, inside function getElementByName, it's doing an implode to a variable, but that variable might not be an array. I'm not sure if this is a bug but I thought I would report it just in case.
If I change this line:
if (implode('][', $form[$key]['#parents']) === $name)
To this:
if (is_array($form[$key]['#parents']) && implode('][', $form[$key]['#parents']) === $name)
Then, it works again.
I'm using module commerce and submodule promotion. When adding a wrong code, this message should appear:
The provided coupon code is invalid
I can only make the error message work when doing the change above.
This is the error I get in watchdog:
TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in implode() (line 32 of /var/www/html/drupal/web/core/lib/Drupal/Core/Form/FormElementHelper.php)
Closed: outdated
9.5
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.