Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
"Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain()
bootstrap.inc" is generated on /admin/structure/types/manage//fields if any of the fields don't have a label.
This is because of the line
'#markup' => check_plain(t($step->label)),
in msnf.field_ui.inc.
t returns an array if no argument or an empty string is passed.
Patch to follow promptly :)
Comment | File | Size | Author |
---|---|---|---|
#1 | msnf-empty-field-label-causes-PHP-warning-2013773-1.patch | 619 bytes | Eli-T |
Comments
Comment #1
Eli-TPatch attached - checks step label is set before passed to check_plain(t()).
Comment #2
rooby CreditAttribution: rooby commentedI added a related issue but the two issues should still be kept separate.
Comment #3
siliconmeadow CreditAttribution: siliconmeadow at Capgemini commentedWe've been using this patch for quite some time. Back when Eli-T created it, I'm guessing. :-)
Comment #4
Eli-T@siliconmeadow there have been no commits to this project for two years it appears. As you're using it on a very large project, may be worth reaching out to @stborchert to see if one of your team can co-maintain?
Comment #6
stBorchert... or you can wait until I finally notice this issue and take care of it ;)
I've committed your patch to branch 7.x-1.x so it should be available in the next development release. Thanks for your help.
Comment #7
Eli-TAwesome :D
Thanks @stborchert