Title: PHP errors
Last modified: June 6, 2019

---

# PHP errors

 *  [saqibnoor](https://wordpress.org/support/users/saqibnoor/)
 * (@saqibnoor)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-errors-163/)
 * Im getting this error message:
 * Uncaught Error: Call to undefined function Mpdf\mb_internal_encoding() in /var/
   www/html/wordpress/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php:1096
   Stack trace: #0 /var/www/html/wordpress/wp-content/plugins/dk-pdf/includes/dkpdf-
   functions.php(164): Mpdf\Mpdf->__construct(Array) #1 /var/www/html/wordpress/
   wp-includes/class-wp-hook.php(286): dkpdf_output_pdf(Object(WP)) #2 /var/www/
   html/wordpress/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, 
   Array) #3 /var/www/html/wordpress/wp-includes/plugin.php(531): WP_Hook->do_action(
   Array) #4 /var/www/html/wordpress/wp-includes/class-wp.php(750): do_action_ref_array(‘
   wp’, Array) #5 /var/www/html/wordpress/wp-includes/functions.php(1105): WP->main(”)#
   6 /var/www/html/wordpress/wp-blog-header.php(16): wp() #7 /var/www/html/wordpress/
   index.php(17): require(‘/var/www/html/w…’) #8 {main} thrown in /var/www/html/
   wordpress/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php on line 1096
 * Any ideas what might be going wrong? Clearly an environment issue where mDPDf
   isnt working somehow… 🙁
 * Many thanks anyone!

Viewing 1 replies (of 1 total)

 *  [mafsdisseny](https://wordpress.org/support/users/capiedge/)
 * (@capiedge)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-errors-163/#post-11769426)
 * Hi [@saqibnoor](https://wordpress.org/support/users/saqibnoor/), I has the same
   problem as you, and I solved it enabling the “mbstring module” (necessary for
   the mpdf php class that is using this plugin). If you don’t have access to your
   server’s php configuration, ask your hosting provider.
 * For more info:
    [https://www.php.net/manual/en/mbstring.installation.php](https://www.php.net/manual/en/mbstring.installation.php)
 * For more info about mbstring and mpdf:
    [https://github.com/mpdf/mpdf/issues/272](https://github.com/mpdf/mpdf/issues/272)
 * I hope it helps you!

Viewing 1 replies (of 1 total)

The topic ‘PHP errors’ is closed to new replies.

 * ![](https://ps.w.org/dk-pdf/assets/icon-256x256.png?rev=3396282)
 * [DK PDF - WordPress PDF Generator](https://wordpress.org/plugins/dk-pdf/)
 * [Support Threads](https://wordpress.org/support/plugin/dk-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/dk-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dk-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dk-pdf/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mafsdisseny](https://wordpress.org/support/users/capiedge/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/php-errors-163/#post-11769426)
 * Status: not resolved