Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in Uniform Server with PHP 7.2

1.1k views Asked by At

I'm using Uniform Server with PHP 7.2 and upon running a php page I made I get this error.

Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding()

When I try to enable the mbstring php module (and other modules) through the graphical user interface I get this.

can't use the gui to enable or disable php module in php 7.2 for uniform server

So when I do it manually, my php_production.ini looks like this. I have used Uniform Server to select that php settings file.

extension=gd2
extension=mbstring
extension=exif      ; Must be after mbstring as it depends on it
extension=mysqli

So why do I still get the error if I have enabled the modules manually via the text editor?

Here is my phpinfo.

Below is the contents of C:\Users\Documents\UniServerZ\core\php72\extensions

php 7.2 extensions in uniform server

1

There are 1 answers

0
desbest On BEST ANSWER

The developer of Uniform Server managed to fix the problem, saying so in this post.

Ok.. Thanks for bringing this up.. Looks like made a mistake on the spelling on the extensions folder. Please rename the /core/php72/extentions to /core/php72/extensions and everything should work as expected.. I have updated the module in Sourceforge.