Jako, for the version 1.8.1 I have corrected the following warning:
ADDON-12 : A call to the mb_strrpos php function with an empty text
This warning is due to a call to the mb_strrpos php function with an empty text. This warning occurs with the statement
$extracts[$i]['left'] = (int) $mbStrrpos($mbSubstr($text,0,$extracts[$i]['left']),' ');
from line 807 of the classes/search.class.php file.
It occurs when I tried to find the closest white space on the left of a searchterm found into a text. If the text starts with the searchstring, then the text variable is empty. See
http://modxcms.com/forums/index.php/topic,27316.msg174469.html#msg174469
Not sure but It seems that this correction solve some weirds characters. For instance do
a search with "education" on this search page (version 1.8.0) and do the same
on this search page (version 1.8.1). In the first result page you have lot of weirds characters not after correction of this warning with the version 1.8.1. And my site runs with Php 4.4.9 under MySql 5.0.51a
Hereafter is the correction of this issue, but may be now is better for you to wait the version 1.8.1.
// find the closest space character on the left & rigth side (west side story !!)
for($i=0;$i<$nbExtr;$i++) {
// on the left
$begin = $mbSubstr($text,0,$extracts[$i]['left']);
if ($begin != '') $extracts[$i]['left'] = (int) $mbStrrpos($begin,' ');
// on the right
$end = $mbSubstr($text,$extracts[$i]['right']+1,$textLength - $extracts[$i]['right']);
if ($end != '') $dr = (int) $mbStrpos($end,' ');
if (is_int($dr)) $extracts[$i]['right'] += $dr + 1;
}