Jump to content

PHPmyadmin error for mb_detect_encoding


flooreus
Go to solution Solved by Ch0cu3r,

Recommended Posts

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

Edited by flooreus
Link to comment
Share on other sites

  • Solution

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.

Edited by Ch0cu3r
Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.