- πΊπΈUnited States cilefen
Please add the stack trace to the issue summary as text not as an image.
- First commit to issue fork.
- Status changed to Closed: works as designed
over 1 year ago 7:29am 19 April 2023
TypeError: mb_strlen(): Argument #1 ($string) must be of type string, array given in mb_strlen() (line 314 of /shared/httpd/sall/web/core/lib/Drupal/Component/Utility/Unicode.php)
#0 /shared/httpd/sall/web/core/lib/Drupal/Component/Utility/Unicode.php(314): mb_strlen(Array)
While:
- I am trying to translate menu
- To create a new content type
That error produced.
I trying to add the code below before line 314 and the core code if (mb_strlen($string) <= $max_length) {
and it seems that it works as expected.
if(!is_string($string)) {
if(is_object($string)) {
$string = $string->getUntranslatedString();
}
else {
$string = "test";
}
}
Closed: works as designed
9.4
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Please add the stack trace to the issue summary as text not as an image.