anyone had issues with PDF invoices and GoDaddy mwc-core AdobeFont ?

Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking anyone had issues with PDF invoices and GoDaddy mwc-core AdobeFont ?

  • This topic has 1 reply, 2 voices, and was last updated 2 months ago by J. Davis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1573614
    Ryan Labelle
    Participant

    Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php:191 Stack trace: #0 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php(191): fwrite(false, ‘StartFontMetric…’) #1 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php(211): FontLib\AdobeFontMetrics->addLine(‘StartFontMetric…’) #2 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php(49): FontLib\AdobeFontMetrics->startSection(‘FontMetrics’, 4.1) #3 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/phenx/php-font-lib/src/FontLib/TrueType/File.php(361): FontLib\AdobeFontMetrics->write(‘/var/www/wp-con…’, NULL) #4 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/dompdf/dompdf/src/FontMetrics.php(243): FontLib\TrueType\File->saveAdobeFontMetrics(‘/var/www/wp-con…’) #5 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/dompdf/dompdf/src/Css/Stylesheet.php(1475): Dompdf\FontMetrics->registerFont(Array, ‘https://fonts.g…’, Resource id #543) #6 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/dompdf/dompdf/src/Css/Stylesheet.php(1332): Dompdf\Css\Stylesheet->_parse_font_face(‘font-family: ‘O…’) #7 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/dompdf/dompdf/src/Css/Stylesheet.php(367): Dompdf\Css\Stylesheet->_parse_css(‘@font-face {\n …’) #8 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/dompdf/dompdf/src/Dompdf.php(581): Dompdf\Css\Stylesheet->load_css_file(‘https://fonts.g…’, 3) #9 /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/dompdf/dompdf/src/Dompdf.php(693): Dompdf\Dompdf->processHtml() #10 /var/www/wp-content/plugins/mphb-invoices/classes/pdf/pdf-helper.php(215): Dompdf\Dompdf->render() #11 /var/www/wp-content/plugins/mphb-invoices/includes/functions.php(69): MPHB\Addons\Invoice\PDF\PDFHelper->printPdf(725) #12 /var/www/wp-includes/class-wp-hook.php(324): mphb_invoice_action_printpdf(”) #13 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #14 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /var/www/wp-admin/admin.php(419): do_action(‘admin_action_mp…’) #16 {main} thrown in /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php on line 191

    #1573902
    J. Davis
    Keymaster

    Hi Ryan,
    We had a similar case and we found that the issue was caused by a must-used plugin from GoDaddy. You can try disabling /wp-content/mu-plugins folder and check if the PDF can be viewed successfully. So we have the task in our list of features and we will notify you when we have any news on this. You may also ask your customer to contact GoDaddy as well to check if they can do anything about this conflict.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.