Linux

PHP Fatal error: Call to undefined function mb_detect_encoding()

Written by Ian Carnaghan · 15 sec read >

How to fix this error

PHP Fatal error:  Call to undefined function mb_detect_encoding()

when trying to use the mb_detect_encoding PHP function

 

This means that the php-mbstring extention needs to be installed

 

To install this on a Centos server run the following command from the command line

yum install php-mbstring

and then restart the Apache web server by using this command as root

service httpd restart

Last Updated On April 07, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. Profile

Leave a Reply

avatar
  Subscribe  
Notify of