Fix “mbstring extension missing” Error from phpMyAdmin

  • 9 comments
  • 15334 Views
  • Print

Last night when I downloaded and ran the latest portable version of XAMPP(with PHP7), I encountered an error message which looks like this.
MBSTRING Extension Missing Error MessagephpMyAdmin page displayed this error message.
After googling for few minutes, I was able to fix this issue and I am going share it how I did that.

Step 1: First thing first, find the “php.ini” file from “xampp\php” directory.

Step 2: Open up the php.ini file with your favorite HTML editor and search for the following line.

; extension_dir = "ext"

Simply remove the semicolon “;” from the very beginning of this line. Replace the word “ext” with your physical hard drive location for “ext” folder(it should be inside “php” folder). Since my “xampp” folder was on my “D:” drive. The URL was “D:\xampp\php\ext”. So the full line on php.ini file should be like this:

extension_dir = "D:\xampp\php\ext"

Step 3: Now find the following line from the php.ini file.

;extension=php_mbstring.dll

Just like before simply remove the semicolon “;” from the very beginning of this line.

Step 4: Save the changes on php.ini file and restart your “XAMPP Control Panel”.

Note: Following the steps mentioned above should resolve the issue and you should be able to see your “phpMyAdmin” window. However, in my case it didn’t and it showed another error message that says:

The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.

In order to fix it, go back to your php.ini file and open it up with your HTML editor just like before. Find the following line:

;extension=php_mysqli.dll

Again remove the semicolon ";" and save the php.ini file. Restart the XAMPP Control panel. It finally resolved my issue and I was able to go see my phpMyAdmin window.

If you encounter any other issue, feel free to drop me a line from the comment section below. I will try to help you out if I may. I hope you find this post to be useful.

Comment

9 Comments

  1. WendyPublished: 2 years ago

    Hey there,

    I have tried your current solution as well as many others for the mbstring missing and I am still receiving the same issue. Uninstalling and installing seems very troublesome enough for me as it always “requires” something that is already on my system but claims it’s not. Is there any other way to fix this?

    • IftekharPublished: 2 years ago

      Hi Wendy, I would suggest you to try out the portable version of XAMPP, it would make your life lot easier. I personally use the portable version as well and had never encountered any additional issues. If xampp says, it “requires” something or something is “missing” then most probably your system doesn’t have those files or xampp’s configuration file couldn’t locate them correctly. Can you be more specific? I can only help you, if I get to know what exactly the error message is. Thanks.

  2. LucianoPublished: 2 years ago

    I followed your instruction and saw my lines on php.ini just as you would fix it. But still get the “missing mbstring” error.

    • IftekharPublished: 2 years ago

      Luciano, it is almost impossible to solve your issue until and unless I really get to see the actual error message. Can you post the exact error message here? It would be whole lot easier for me to understand and then prescribe a solution. Thanks.

  3. JRPublished: 2 years ago

    Thanks so much…! Solved the issue. Needed Step 4 as well.

    • IftekharPublished: 2 years ago

      You are welcome 🙂

  4. GavinPublished: 2 years ago

    Fixed – missing a “\”

    thanks

    • IftekharPublished: 2 years ago

      Great! You are welcome 🙂

  5. ShubhadaPublished: 8 months ago

    Many thanks . That solved my problem.

Leave a Reply

Note: Convet HTML, PHP, JavaScripts from Postable, before posting from comment section.
License: By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution. Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.