Title: PDF error
Last modified: June 19, 2021

---

# PDF error

 *  Resolved [Marcihess](https://wordpress.org/support/users/marcihess/)
 * (@marcihess)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/pdf-error-3/)
 * When clicking on the PDF button, a whole page of error messages appear. The PRINT
   button works fine. Here are the first two. Please tell me what I need to do to
   get the PDF button to work.
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /home/customer/www/driftlessprairies.org/public_html/wp-content/plugins/pdf-
   print/mpdf/classes/ttfontsuni.php on line 613
 * Warning: A non-numeric value encountered in /home/customer/www/driftlessprairies.
   org/public_html/wp-content/plugins/pdf-print/mpdf/mpdf.php on line 30649
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpdf-error-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [andrewsupport](https://wordpress.org/support/users/andrewsupport/)
 * (@andrewsupport)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/pdf-error-3/#post-14577676)
 * Hi,
 * Could you please upgrade MPDF library on the PDF&Print settings page if you didn’t
   do it yet?
 *  [mkaekenm](https://wordpress.org/support/users/mkaekenm/)
 * (@mkaekenm)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/pdf-error-3/#post-14620464)
 * Hi,
    I am experiencing a similar problem on a Shared Hosting account on Ionos/
   1&1, Germany. The error message just says “Problem when opening PDF”. Which version
   of mPDF is needed for PHP 7.4 oder PHP 8 ?
 * Are there some error log entries to find out what is happending ?
 *  Plugin Support [andrewsupport](https://wordpress.org/support/users/andrewsupport/)
 * (@andrewsupport)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/pdf-error-3/#post-14626394)
 * Hi,
 * If you are using PHP 7.x.x or higher on your site – please follow the next instructions
   in order to upgrade MPDF library for PDF & Print plugin:
    1) Go to PDF & Print
   settings page; 2) Open the “Misc” tab; 3) Click the “Upgrade” button; 4) Test
   the PDF doc creation.
 *  Plugin Support [andrewsupport](https://wordpress.org/support/users/andrewsupport/)
 * (@andrewsupport)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/pdf-error-3/#post-14676066)
 * Hi,
 * Since there is no reply from you, we consider this topic as resolved. We hope
   you’ve found the solution. If you have any questions, please feel free to contact
   us via our Help Center – [https://support.bestwebsoft.com/](https://support.bestwebsoft.com/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PDF error’ is closed to new replies.

 * ![](https://ps.w.org/pdf-print/assets/icon-256x256.gif?rev=2580392)
 * [PDF & Print by BestWebSoft - WordPress Posts and Pages PDF Generator Plugin](https://wordpress.org/plugins/pdf-print/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pdf-print/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pdf-print/)
 * [Active Topics](https://wordpress.org/support/plugin/pdf-print/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdf-print/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdf-print/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [andrewsupport](https://wordpress.org/support/users/andrewsupport/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/pdf-error-3/#post-14676066)
 * Status: resolved