Fatal error: Uncaught Error: Call to undefined function Dompdf\mb_internal_encoding() in /var/www/public_html/plugins/pdfcreater/vendor/dompdf/dompdf/src/Dompdf.php:295

  • Check if mbstring is installed
    Run in terminal:

    php -m | grep mbstring
    • If nothing shows, it’s not installed.

  • Install mbstring
    Depending on your OS:

    • Ubuntu/Debian

      sudo apt-get update
      sudo apt-get install php-mbstring
      sudo systemctl restart apache2
    • CentOS/RHEL

      sudo yum install php-mbstring
      sudo systemctl restart httpd
    • If using PHP-FPM

      sudo systemctl restart php*-fpm
  • Enable extension in php.ini
    Open your php.ini and make sure:

    extension=mbstring

    Then restart Apache/Nginx/PHP-FPM.

  • Verify again

    php -m | grep mbstring

    You should see mbstring.

  • Check in phpinfo()
    Create a file info.php in your web root:

    <?php phpinfo();

    Open it in browser and check that mbstring support = enabled.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments