Open Mark-H opened 1 year ago
This issue occurs only if the system setting use_multibyte
isn't set to Yes
and the length of the extract to generate is bigger than the length of the text itself.
The error can be avoided by adding this line
if (strlen($text) <= $length) return $text;
before the line that throws the error:
Found this on a client MODX 2.8.4 / PHP 8.0 / SimpleSearch 2.1.2 site's php error log going back many months:
Not quite sure what triggers it, but the trace suggests a front-end action.