• Resolved angelleye

    (@angelleye)


    After updating to 2.0.2 I began getting this fatal error when orders would take place:

    Fatal error: Call to undefined function Dompf\mb_internal_encoding() in /home/user/public_html/wp-content/plugins/woocommerce-pder-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php on line 274

    Had to disable the plugin for now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter angelleye

    (@angelleye)

    I am running PHP 5.6.31 so there shouldn’t be any issue with autoloading classes, and I have plenty of other plugins that are autoloading without any issue, so not sure why this isn’t finding the method it’s looking for..??

    • This reply was modified 7 years, 7 months ago by angelleye.
    • This reply was modified 7 years, 7 months ago by angelleye.
    Plugin Contributor Ewout

    (@pomegranate)

    I don’t think this has anything to do with autoloading, mb_internal_encoding is not part of Dompdf, but part of a PHP library called MB String. Can you check this? https://www.ads-software.com/support/topic/500-error-pdf-not-loading/

    Thread Starter angelleye

    (@angelleye)

    Thanks for the quick response. Looks like that may be my issue as mbstring extension was not enabled.

    While in there I also notice it’s giving me a message about GMagick or IMagick not being available, but I don’t see any extensions in PHP for those..??

    Plugin Contributor Ewout

    (@pomegranate)

    Glad to hear that fixed it!

    IMagick / GMagick are not required, especially if you don’t use PNG it should work fine without it. IMagick is also sometimes called ImageMagick, is that available in your host?

    Thread Starter angelleye

    (@angelleye)

    Doesn’t seem to be, but I’ll work it out later if I need it. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error in 2.0.2 update regarding Dompdf..??’ is closed to new replies.