Title: Fatal php error!
Last modified: April 27, 2023

---

# Fatal php error!

 *  Resolved [wynot](https://wordpress.org/support/users/wynot/)
 * (@wynot)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-php-error-33/)
 * My Hosting provider told me this plugin is causing the fatal problem:
 * > Thank you for contacting Cloudways technical Support, we hope you are doing
   > well.
   >  These logs shows that **plugin generate-pdf-using-contact-form-7** is
   > creating issue please deactivate this plugin or contact plugin support team
   > so that they solve this issue.[Thu Apr 27 16:01:01.028538 2023] [proxy_fcgi:
   > error] [pid 15598:tid 139745451292416] [client [174.130.58.10:0](http://174.130.58.10:0/)]
   > AH01071: Got error ‘PHP message: PHP Fatal error:  Uncaught Mpdf\\MpdfException:
   > Cannot find TTF TrueType font file “XB Riyaz.ttf” in configured font directories.
   > in /home/[mysite/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php:33\nStack](http://450361.cloudwaysapps.com/qtcbmdvfgq/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php:33%5CnStack)
   > trace:\n#0 /home/[](http://450361.cloudwaysapps.com/qtcbmdvfgq/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(3890))
   > [mysite](http://450361.cloudwaysapps.com/qtcbmdvfgq/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php:33%5CnStack)/
   > public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/
   > vendor/mpdf/mpdf/src/Mpdf.php(3890): Mpdf\\Fonts\\FontFileFinder->findFontFile()\
   > n#1 /home/[](http://450361.cloudwaysapps.com/qtcbmdvfgq/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(4185))
   > [mysite](http://450361.cloudwaysapps.com/qtcbmdvfgq/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php:33%5CnStack)/
   > public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/
   > vendor/mpdf/mpdf/src/Mpdf.php(4185): Mpdf\\Mpdf->AddFont()\n#2 /home/[mysite](http://450361.cloudwaysapps.com/qtcbmdvfgq/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php:33%5CnStack)
   > [/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(18214)](http://450361.cloudwaysapps.com/qtcbmdvfgq/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(18214)):
   > Mpdf\\Mpdf->SetFont()\n#3 /home/[](http://450361.cloudwaysapps.com/qtcbmdvfgq/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mp...)
   > [mysite](http://450361.cloudwaysapps.com/qtcbmdvfgq/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php:33%5CnStack)/
   > public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mp…‘,
   > referer: [https://moldlawgroup.com/client-intake-1/](https://moldlawgroup.com/client-intake-1/)
 * Please let me know if you need any more info.
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-php-error-33%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [ZealousWeb](https://wordpress.org/support/users/zealopensource/)
 * (@zealopensource)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-php-error-33/#post-16704185)
 * Hello [@wynot](https://wordpress.org/support/users/wynot/) 
   To prevent the plugin
   from becoming too large, we have opted to utilize common TTF fonts and have included
   them in the plugin.However, if you encounter a fatal error that states “Cannot
   find TTF TrueType font file ‘XB Riyaz.ttf’ in configured font directories” because
   you are using a different font, you will need to upload the necessary font to
   the designated plugin path./wp-content/plugins/generate-pdf-using-contact-form-
   7/inc/lib/mpdf/vendor/mpdf/mpdf/ttfonts
    1. You can obtain the required font by downloading it from the GitHub directory
       provided below.
       Visit Github link [https://github.com/mpdf/mpdf/tree/development/ttfonts](https://github.com/mpdf/mpdf/tree/development/ttfonts)
    2. Download the fonts that’s missing and throwing error
       Click here to review [How to Video](https://www.awesomescreenshot.com/video/17025362?key=99cbec8974ee85fdad75e8cea60a97d6)
       Review Screenshots :[https://prnt.sc/ZKde74y12q3N](https://prnt.sc/ZKde74y12q3N)
       [https://prnt.sc/PsXaTarHTx4m](https://prnt.sc/PsXaTarHTx4m)
 * 3: Upload this files to this plugin path
   /wp-content/plugins/generate-pdf-using-
   contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/ttfontsS.S [https://prnt.sc/-TLx40Qup76r](https://prnt.sc/-TLx40Qup76r)
   RegardsZealousweb
 *  Plugin Author [ZealousWeb](https://wordpress.org/support/users/zealopensource/)
 * (@zealopensource)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-php-error-33/#post-16728368)
 * Hello [@wynot](https://wordpress.org/support/users/wynot/) 
   We are closing the
   ticket as we have not received any further comments or requests from you regarding
   the reported issue.
 * We understand that you may have found a resolution. Our team is always available
   to assist you, and we encourage you to reach out to us again if you require any
   further assistance or encounter any related issues in the future.
   Thank you for
   choosing our productRegards
 *  Thread Starter [wynot](https://wordpress.org/support/users/wynot/)
 * (@wynot)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-php-error-33/#post-16729420)
 * Yes, I think your latest update fixed it!
 * Thank You!

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

The topic ‘Fatal php error!’ is closed to new replies.

 * ![](https://ps.w.org/generate-pdf-using-contact-form-7/assets/icon-256x256.jpg?
   rev=3240636)
 * [Generate PDF using Contact Form 7](https://wordpress.org/plugins/generate-pdf-using-contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/generate-pdf-using-contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/generate-pdf-using-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/generate-pdf-using-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/generate-pdf-using-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/generate-pdf-using-contact-form-7/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [wynot](https://wordpress.org/support/users/wynot/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-php-error-33/#post-16729420)
 * Status: resolved