mb_substr() needs a string as first argument. When using the text format field, the first argument of mb_subsctr() is an array.
Create a text format field with max length. Try to edit the form.
Check if value is a string, add additional array handling when needed.
Active
6.2
Code