Error! Call to Undefined Function mb_convert_encoding

The “Call to undefined function mb_convert_encoding” error typically occurs in PHP when you’re trying to use the mb_convert_encoding function, but the Multibyte String extension (mbstring) is not enabled in your PHP installation.

To resolve this issue, you need to enable the mbstring extension in your PHP configuration. Here’s how you can do it:

Enable the mbstring extension:


After making this change, you’ll need to restart your web server to apply the configuration. The command to restart your web server depends on your server software.

Enable Extension using c-Panel #

If you want to enable the Multibyte String extension (mbstring) in PHP using cPanel, you can typically do so through the PHP settings provided by your web hosting provider. Here are the general steps to enable mbstring extension via cPanel:

  1. Log in to cPanel: Access your cPanel account by visiting your web hosting provider’s website and logging in with your credentials.
  2. Locate the “PHP Selector” or “Select PHP Version” option: The exact location and name of this option may vary depending on your hosting provider and the cPanel theme they use. Look for a section related to PHP configuration or settings.
  3. Select the desired PHP version: In the PHP Selector or PHP Version section, you should see a dropdown menu or a list of available PHP versions. Choose the version of PHP you want to configure.
  4. Enable the mbstring extension:
    • After selecting the PHP version, you should see a list of available PHP extensions.
    • Search for “mbstring” or “Multibyte String” in the list of extensions and check the box next to it to enable it.
  5. Save the changes: There should be a “Save” or “Apply” button somewhere on the page. Click it to save your changes.