Title: mpdf issue
Last modified: November 1, 2018

---

# mpdf issue

 *  Resolved [Steve Borsch](https://wordpress.org/support/users/sborsch/)
 * (@sborsch)
 * [8 years ago](https://wordpress.org/support/topic/mpdf-issue/)
 * Have had continual success with using Gravity PDF (thank you!) but just ran in
   to an issue I cannot solve.
 * When generating a PDF it appears that there is an incompatibility with mpdf. 
   I receive this error:
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /home/REDACTED/public_html/MY-DOMAIN.COM/wp-content/plugins/gravity-forms-
   pdf-extended/vendor/blueliquiddesigns/mpdf/mpdf.php on line 11153
 * An mpdf Github thread here: [https://github.com/mpdf/mpdf/issues/616](https://github.com/mpdf/mpdf/issues/616)
   
   Solution here: [https://github.com/mpdf/mpdf/blob/development/src/TTFontFile.php#L726](https://github.com/mpdf/mpdf/blob/development/src/TTFontFile.php#L726)
 * Any ideas how to fix on my site now?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jake Jackson](https://wordpress.org/support/users/blue-liquid-designs/)
 * (@blue-liquid-designs)
 * [8 years ago](https://wordpress.org/support/topic/mpdf-issue/#post-10288646)
 * Hi Steve,
 * Yes. This is a known issue.
 * We’re looking to squash all these Mpdf warnings / notices in our next major Gravity
   PDF release (v5.0). For the moment, it’s recommended to disable PHP error messages
   in your production environment – [usually you’ll set WP_DEBUG, or WP_DEBUG_DISPLAY, to false in your wp-config.php file](https://aristath.github.io/blog/wp-hide-php-errors)–
   so the PDFs can generate correctly.
 * Let me know if you’ve any further questions.

Viewing 1 replies (of 1 total)

The topic ‘mpdf issue’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-pdf-extended/assets/icon-256x256.png?rev=3168987)
 * [Gravity PDF](https://wordpress.org/plugins/gravity-forms-pdf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-pdf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-pdf-extended/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jake Jackson](https://wordpress.org/support/users/blue-liquid-designs/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/mpdf-issue/#post-10288646)
 * Status: resolved