Fatal error: Call to undefined function mb_detect_encoding()

Missing mbstring library for php in Centos 6.9, solution:

$ yum install php-mbstring