0

I tried to manually install latest version of Apache,PHP7 with MariaDB on a Windows 10 machine, and when i try to run latest phpmyadmin setup script, it return:

Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in C:\Server\Web\phpmyadmin\libraries\php-gettext\gettext.inc:177 Stack trace: 
#0 C:\Server\Web\phpmyadmin\libraries\php-gettext\gettext.inc(282): _encode('The %s extensio...') 
#1 C:\Server\Web\phpmyadmin\libraries\php-gettext\gettext.inc(289): _gettext('The %s extensio...') 
#2 C:\Server\Web\phpmyadmin\libraries\core.lib.php(306): __('The %s extensio...') 
#3 C:\Server\Web\phpmyadmin\libraries\core.lib.php(961): PMA_warnMissingExtension('mbstring', true) 
#4 C:\Server\Web\phpmyadmin\libraries\common.inc.php(102): PMA_checkExtensions() 
#5 C:\Server\Web\phpmyadmin\index.php(13): require_once('C:\\Server\\Web\\p...') 
#6 {main} thrown in C:\Server\Web\phpmyadmin\libraries\php-gettext\gettext.inc on line 177
Rick James
  • 135,179
  • 13
  • 127
  • 222
UGD
  • 39
  • 1
  • 8
  • Possible duplicate of [Fatal error: Call to undefined function mb\_detect\_encoding()](http://stackoverflow.com/questions/17204437/fatal-error-call-to-undefined-function-mb-detect-encoding) – Hackerman Oct 20 '16 at 12:53

3 Answers3

0

It is wamp, I am sure you must be having mbstring library, just make sure extension=php_mbstring.dll is not commented in your php.ini

enter image description here

Danyal Sandeelo
  • 12,196
  • 10
  • 47
  • 78
0

You need to install or enable the php-mbstring library.

Have a look at the phpinfo() and check if that module is enabled. After installing / enabling it make sure the Apache service is restarted.

mbstring

Multibyte Support => enabled 
Multibyte string engine => libmbfl 
HTTP input encoding translation => disabled 
libmbfl version => 1.3.2 oniguruma version => 5.9.6

http://php.net/manual/it/install.windows.extensions.php

jakub wrona
  • 2,212
  • 17
  • 17
0

I found the problem, it seems the

extension_dir = "ext"

isn't conffigured corectly now it's working :D Thanks!

UGD
  • 39
  • 1
  • 8