phpMyAdmin mbstring error

Whenever I try to enter my phpMyAdmin, it gives me this error:

The mbstring extension is missing. Please check your PHP configuration.

I've looked all over the Internet for a fix, but all I've found is errors similar to mine, but not the same, or the exact same but there was no fix given.

I am also using Windows.


Solution 1:

In Centos I have installed a php extension. I did this with:

yum install php-mbstring

Solution 2:

Before sometime I also had the same problem. I have tried replacing the .dll file but no result. After some debugging I found the solution.

I had this in my php.ini file:

extension_dir = "ext"

And I'm getting mbstring extension missing error. So I tried putting the full path for the extension directory and it works for me. like:

extension_dir = "C:\php\ext"

Hope this will help.

Cheers,

Solution 3:

check your php.ini file in the root directory of your php installation. In the extensions part of the configuration you should find:

;extension=php_mbstring.dll

remove the leading ';' to uncomment and enable the extension so it looks like this:

extension=php_mbstring.dll

restart your apache and it should work.

Edit: I just read that you are already using a webhost. Does your webhost have a interface where you can set php variables etc? Or a .ini file you can edit?

If not you may are forced to talk to the webhost and ask them to enable that particular extension.

Solution 4:

My case was like this

Strangely, I noticed that the php.ini file that WAMP was using wasn't the one in the php directory, but rather was referencing a php.ini file in the bin directory... I copied my php.ini file to wamp\bin\apache\apache2.4.17\bin directory, restarted the wamp services and PHPMyadmin was off and running...

Thanks I solved the problem