Problem/Motivation
After the latest update I'm getting this error anytime I save a form...
Deprecated function: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\choices_autocomplete\Plugin\Field\FieldWidget\EntityReferenceChoicesWidget->formElement() (line 239 of modules/contrib/choices_autocomplete/src/Plugin/Field/FieldWidget/EntityReferenceChoicesWidget.php).
Anyone else getting something similar?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3340886-2.patch | 828 bytes | adil_siddiqui |
Comments
Comment #2
adil_siddiqui commentedPatch created
Comment #3
chucksimply commentedThanks!
Comment #5
bobooon commentedPHP 8.1 deprecation. Changed the default value from NULL to an empty string.
Comment #6
chucksimply commentedIssue still persists in the 1.1.15 update without the patch.
Comment #7
chucksimply commentedComment #8
bobooon commentedCould you please provide steps to replicate the issue?
Comment #9
bobooon commentedComment #10
chucksimply commentedSo it's just when I edit a previously created node. As soon as I open the edit page I get the same error.
Patch fixes it though.
Comment #12
bobooon commentedTurns out the original fix only works for new installs. New release fixes it for existing installs.
Comment #13
chucksimply commentedAwesome thanks @robphillips. No error with new release.