Home    Articles


Call to undefined function mb_convert_encoding() in Magento 1.9



Recently i've faced this error when an order was submited: 

Fatal error: Call to undefined function mb_convert_encoding() in
 /var/www/html/magento/lib/Pelago/Emogrifier.php on line 556

The reason for this is that mbstring is not installed on your Apache server. Using phpinfo(); this is what you should see.

If you don't see this then you have to install mbstring, after that restart Apache. Here is how:

1. Connect to your server with SSH using PUTTY or something else. ( You need ROOT permisions to install, if you don't have permissions contact hosting ).

2. Enter the command:

yum install php-mbstring

3. Say Yes 

At some point you will be asked if you want to install the package. enter command: y

4. Restart Apache

Enter command: httpd -k restart

That should be all.