Title: Fatal error: Uncaught MpdfException
Last modified: March 11, 2022

---

# Fatal error: Uncaught MpdfException

 *  Resolved [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-mpdfexception/)
 * Hi,
 * I was trying the plugin for a project of ours and unfortunately it doesn’t work,
   loads of errors and warning upon creating the PDF:
 *     ```
       Warning: A non-numeric value encountered in .../src/wp-content/plugins/pdf-print/mpdf/mpdf.php on line 30649
   
       Warning: A non-numeric value encountered in .../src/wp-content/plugins/pdf-print/mpdf/Tag.php on line 1889
   
       Warning: Cannot modify header information - headers already sent by (output started at .../src/wp-content/plugins/pdf-print/mpdf/Tag.php:2003) in .../src/wp-content/plugins/pdf-print/mpdf/mpdf.php on line 9403
   
       Fatal error: Uncaught MpdfException: Some data has already been output to browser, can't send PDF file in .../src/wp-content/plugins/pdf-print/mpdf/mpdf.php:9405 Stack trace: #0 .../src/wp-content/plugins/pdf-print/pdf-print.php(1245): mPDF->Output() #1 .../src/wp-includes/class-wp-hook.php(307): pdfprnt_print(Object(WP)) #2 .../src/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #3 .../src/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #4 .../src/wp-includes/class-wp.php(771): do_action_ref_array('wp', Array) #5 .../src/wp-includes/functions.php(1310): WP->main('') #6 .../src/wp-blog-header.php(16): wp() #7 .../src/index.php(17): require('/Users in .../src/wp-content/plugins/pdf-print/mpdf/mpdf.php on line 9405
       ```
   

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

 *  Plugin Support [andrewsupport](https://wordpress.org/support/users/andrewsupport/)
 * (@andrewsupport)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-mpdfexception/#post-15456459)
 * Hi,
 * Could you please upgrade MPDF library on the PDF&Print settings page if you didn’t
   do it yet?
 * Please follow the next steps in order to upgrade the MPDF library manually via
   FTP:
    1) Download and install FTP client (for example, Filezilla). 2) Open the
   FTP client and enter your FTP access credentials (host, username, and password)
   to access files on your server. 3) Navigate to ‘yourwordpresswebsite/wp-content/
   plugins/ directory. 4) Delete (remove) ‘mpdf’ folder. 5) Please use this link
   and download the archive. [https://bestwebsoft.com/wp-content/plugins/paid-products/plugins/pdf-print-mpdf/?action=loading_library](https://bestwebsoft.com/wp-content/plugins/paid-products/plugins/pdf-print-mpdf/?action=loading_library)
   6) Unpack the archive and paste the “vendor” folder to ‘wp-content/uploads’ directory.
 *  Plugin Support [andrewsupport](https://wordpress.org/support/users/andrewsupport/)
 * (@andrewsupport)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-mpdfexception/#post-15631923)
 * Hi,
 * The plugin has been updated. This issue has been fixed.

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

The topic ‘Fatal error: Uncaught MpdfException’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [andrewsupport](https://wordpress.org/support/users/andrewsupport/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-mpdfexception/#post-15631923)
 * Status: resolved