mPDF Manual – Troubleshooting

Incompatible PHP version

If your installation shows signs of PHP version incompatibility, such as

  • “CSPRNG fucntinons not available” exception
  • various fatal Parse errors in Mpdf codebase

make sure both your PHP version in console and in the server environment is supported. Checking phpinfo(); often does not suffice, try inserting var_dump(PHP_VERSION); die; right before your mPDF code to find actual PHP version used with mPDF.

See also

Fork me on GitHub