Hiwhen you are generating pdf from html in indic (gujrati) this error occurs. The problem is mpdf sometime fails to process "raph" properly.
if you go through indic class and check _move_info_pos() method signature. you will see
function _move_info_pos(&$info, $from, $to) {
$t = array();
$t[0] = $info[$from];
if ($from > $to) {
array_splice($info, $from, 1);
array_splice($info, $to, 0, $t);
}
else {
array_splice($info, $to, 0, $t);
array_splice($info, $from, 1);
}
}
this is not static but in code at 2-3 place its called as static and thats why it fails. what i did is just added static keyword in function signature and it works.
static function _move_info_pos(&$info, $from, $to) {
$t = array();
$t[0] = $info[$from];
if ($from > $to) {
array_splice($info, $from, 1);
array_splice($info, $to, 0, $t);
}
else {
array_splice($info, $to, 0, $t);
array_splice($info, $from, 1);
}
}
hope it will help someone too. :)