Mpdf: PHP 7.1 compatibility

Created on 30 Jun 2016  路  4Comments  路  Source: mpdf/mpdf

mPDF is now working with PHP 7.1

I'm using mPDF 7.0.x-dev f316a8b

$pdf->WriteHTML($html);
?>

causes:

ErrorException in cssmgr.php line 1302:
Illegal string offset 'ID'.

The only workaround I found is:

error_reporting(E_ERROR);

bufix

Most helpful comment

Notices and warnings from PHP 7.1 on HTML snippets from examples repository were fixed in ac56fae.

All 4 comments

Please, attach a HTML snippet you are using.

mPDF does not support PHP 7.1 so you will have to wait for a newer version.




Notices and warnings from PHP 7.1 on HTML snippets from examples repository were fixed in ac56fae.

Here's another incompatibility problem too https://github.com/mpdf/mpdf/issues/288

Was this page helpful?
0 / 5 - 0 ratings