flooreus Posted October 2, 2013 Share Posted October 2, 2013 Hi there, I have Apache 2.2 installed on my Windows machine, with PHP 5.3. They function fine together, but when I try and run PHPmyadmin, I get the following error: Fatal error: Call to undefined function mb_detect_encoding() in C:\www\phpmyadmin\libraries\php-gettext\gettext.inc on line 177 I have the following set in my php.ini file: LoadModule php5_module "c:/php/php5apache2_2.dll" PHPIniDir "C:/php" LoadFile "C:/php/php5ts.dll" And the following extensions enabled: extension=php_mbstring.dll extension=php_gettext.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_pdo_mysql.dll The php.ini file being used is c:\php\php.ini (checked with phpinfo()). I also have checked that the extensions enabled exist in c:\php\ext, and they do. I have restarted my webserver, and my machine, but this error still persists. I cannot see what else I can do to get this to work. Does anyone have any ideas? Full php.ini file attached (sorry, it had to be zipped because of the 50KB max file size) Regards, Tom php.zip Link to comment https://forums.phpfreaks.com/topic/282634-phpmyadmin-error-for-mb_detect_encoding/ Share on other sites More sharing options...
Ch0cu3r Posted October 2, 2013 Share Posted October 2, 2013 Have you added C:\php to windows PATH variable? mbstirng.dll may rely on other .dll libraries located in C:\PHP. The extension wont be able to find these if php folder is not in windows PATH. Also make sure extension_dir directive is set to the full path to the extension folder (C:/PHP/ext). You may also want to enable display_startup_errors directive so errors are displayed when Apache goes to load PHP. The version of php_mbstring.dll must be the same version that came with your PHP release, using .dll files from different releases of PHP will not work. Link to comment https://forums.phpfreaks.com/topic/282634-phpmyadmin-error-for-mb_detect_encoding/#findComment-1452168 Share on other sites More sharing options...
flooreus Posted October 2, 2013 Author Share Posted October 2, 2013 Adding C:\php to my path variable did not work, but I noticed the extension_dir variable was unset. After uncommenting this it worked fine: ;extension_dir = "ext" Thanks very much for your help, I knew it was something simple. I won't lose any more hair over it now! Kind Regards, Tom Link to comment https://forums.phpfreaks.com/topic/282634-phpmyadmin-error-for-mb_detect_encoding/#findComment-1452171 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.