Fatal error: Call to undefined function mb_detect_encoding() in C:\Users\Jarek\mywebsite\phpMyAdmin\libraries\php-gettext\gettext.inc on line 177

StackOverflow https://stackoverflow.com/questions/23635514

  •  21-07-2023
  •  | 
  •  

Question

I am trying to set up phpMyAdmin, and i was following this site , but i got an error about "Fatal error: Call to undefined function mb_detect_encoding() in C:\Users\Jarek\mywebsite\phpMyAdmin\libraries\php-gettext\gettext.inc on line 177", and i searched this error online, Most of suggestion are uncommon some lines in php.ini, but it didn't work for me. This is the site tell you how to solve problem with this error. solve 1 solve 2

php.ini is in my php folder which is located in c diver. enter image description here

prompt command to check path enter image description here

Every time i changed config, i also did restart apache.

This is where i uncommon the lines

I also tried to write some piece of code of php as below:

 $con=mysqli_connect("127.0.0.1","root","xxxxxxx","morris_db");
 if (mysqli_connect_errno()) {
 echo "Failed to connect to MySQL: " . mysqli_connect_error();
 }

and open my browser, and type localhost/index.php, it shows me an error about "Fatal error: Call to undefined function mysqli_connect() in C:\Users\Jarek\mywebsite\index.php on line 8"

Was it helpful?

Solution

Try adding these extensions in the PHP.ini

extension=php_mbstring.dll
extension=php_gettext.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll

Also check whether the PHP folder exists in the PATH.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top