I sometimes got the PHP error mb_strpos(): Offset not contained in string. I cannot find out when it happens and when not.
There’s an old thread from 2012 on the Symphony forum in which Nikolai Shmakov gives a solution that also works for me:
Replace line 383 in class.search_index_php
$p = $match[0][1];
against
$p = $match[0][1]/2;