Jump to content


Photo

undefined function mb_detect_encoding

phpmyadmin apache windows 2008r2 mbstring extensions

Best Answer trq, 15 June 2013 - 11:52 PM

It is likely that you have edited the wrong php.ini file. Generally, there is two differnt ini's, one for your mod_php implementation and one for the cli.

Your php_info page should say what php.ini file is relevant. Go to the full post


  • Please log in to reply
2 replies to this topic

#1 dontstealmyfish

dontstealmyfish

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 15 June 2013 - 11:31 PM

Hello,

 

I am trying to setup an Apache, MySql, PHP combination on windows 2008 r2 machine and have gotten to the part where I am trying to setup PhpMyAdmin when i get an error stating "Call to undefined function mb_detect_encoding() in C:\...\...\gettext.inc on line 177"

between google and this post: http://forums.phpfre...fined-function/

 

It seemed likely to be that that the extension was commented out, so i verified the DLL was in the EXT directory and removed the comment for : extension=php_mbstring.dll

 

then restarted the apache service. I then attempted to load the setup/index.php for PhpMyAdmin again, but it resulted in the same error.

When i run php.exe -m   It lists mbstring in the PHP Modules, however if i run <?php

phpinfo();
?>
 
the resulting page lists NOTHING about mbstring...
 
I would greatly appreciate any help regarding this issue.


These are the various components and/or important info...

OS: Windows 2008 R2 w/SP1
Apache: 2.4.4 win32 w/ ssl 0.9.8
PHP: v5.4.16 Win32 VC90x86 threadsafe
MySql: 5.6.11.0 (presumably x86)
PhpMyAdmin: 4.0.3
 

Edited by dontstealmyfish, 15 June 2013 - 11:35 PM.


#2 trq

trq

    Advanced Member

  • Administrators
  • 30,982 posts
  • LocationSydney, Australia.

Posted 15 June 2013 - 11:52 PM   Best Answer

It is likely that you have edited the wrong php.ini file. Generally, there is two differnt ini's, one for your mod_php implementation and one for the cli.

Your php_info page should say what php.ini file is relevant.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#3 dontstealmyfish

dontstealmyfish

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 16 June 2013 - 01:36 AM

It is likely that you have edited the wrong php.ini file. Generally, there is two differnt ini's, one for your mod_php implementation and one for the cli.

Your php_info page should say what php.ini file is relevant.

Hmm,  the php_info page states: Configuration File (php.ini) Path     -  C:\Windows

Yet there is no PHP.ini there..


Another look at httpd.conf for apache showed me that the value for "PHPIniDir" had a typo and it must of read it at "c:\windows" maybe by default. After updating that value i restarted the apache service and the page is loading. Thanks!
 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com