Warning: unpack() when using cyrillic letters in MPDF60 library

231 views Asked by At

I use MPDF60 library in my site to produce PDF files. When my site moved to another hosting I started to get this error message:

Warning: unpack() [function.unpack]: Type n: not enough input, need 2, have 0

And this error happens when there are cyrillic letters. By the way, if I test it locally or at another server, then everything is ok. So, I do not know what server settings may cause this error.

1

There are 1 answers

2
Vasily On

Try to set mbstring.func_overload = 0 in PHP settings.