2016-11-10 68 views
0

當我嘗試從本地主機運行Phpmyadmin時,我不斷收到此問題。PHPmyadmin問題 - 致命錯誤:未捕獲錯誤:調用未定義的函數mb_detect_encoding()

Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() 
in C:\Apache24\htdocs\phpmyadmin\libraries\php-gettext\gettext.inc:177 Stack 
trace: #0 C:\Apache24\htdocs\phpmyadmin\libraries\php- 
gettext\gettext.inc(282): _en code('The %s extensio...') #1 
C:\Apache24\htdocs\phpmyadmin\libraries\php-gettext\gettext.inc(289): _ 
gettext('The %s extensio...') #2 
C:\Apache24\htdocs\phpmyadmin\libraries\core.lib.php(306): __('The %s 
extensio...') #3 C:\Apache24\htdocs\phpmyadmin\libraries\core.lib.php(961): 
PMA_warnMissingExtension('mbstring', true) #4 
C:\Apache24\htdocs\phpmyadmin\libraries\common.inc.php(102): 
PMA_checkExtensions() #5 C:\Apache24\htdocs\phpmyadmin\index.php(13): 
require_once('C:\\Apache24\\htd...') #6 {main} thrown in 
C:\Apache24\htdocs\phpmyadmin\libraries\php-gettext\gettext.inc on line 177 

我已經多次經歷過,並嘗試了所有的我能找到關於這個問題,還沒有建議弄明白。我嘗試了各種「/」「\」建議,但沒有運氣。

這裏是我的httpd.conf設置:

ServerRoot "c:/Apache24" 


</IfModule> 
LoadModule php7_module "c:/php/php7apache2_4.dll" 
AddHandler application/x-httpd-php .php 
PHPIniDir "c:\PHP" 

這裏是我的php.ini設置:

; Directory in which the loadable extensions (modules) reside. 
; http://php.net/extension-dir 
    extension_dir = "C:/PHP/ext" 
; On windows: 
    extension_dir = "C:/PHP/ext" 



;extension=php_bz2.dll 
;extension=php_curl.dll 
;extension=php_fileinfo.dll 
;extension=php_ftp.dll 
    extension=php_gd2.dll 
    extension=php_gettext.dll 
;extension=php_gmp.dll 
;extension=php_intl.dll 
;extension=php_imap.dll 
;extension=php_interbase.dll 
;extension=php_ldap.dll 
    extension=php_mbstring.dll 
    extension=php_exif.dll  ; Must be after mbstring as it depends on it 
    extension=php_mysqli.dll 
;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client 
;extension=php_openssl.dll 
;extension=php_pdo_firebird.dll 
;extension=php_pdo_mysql.dll 
;extension=php_pdo_oci.dll 
;extension=php_pdo_odbc.dll 
;extension=php_pdo_pgsql.dll 
;extension=php_pdo_sqlite.dll 
;extension=php_pgsql.dll 
;extension=php_shmop.dll 

PHPINFO

PHP Version 7.0.13 
System Windows NT SERVER 6.3 build 9600 (Windows Server 2012 R2  
Standard Edition) AMD64 
Build Date Nov 8 2016 13:28:54 
Compiler MSVC14 (Visual C++ 2015) 
Architecture x64 
Configure Command cscript /nologo configure.js "--enable-snapshot-build"  
"--enable-debug-pack" "--with-pdo-oci=c:\php- 
sdk\oracle\x64\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php- 
sdk\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out- 
dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "-- 
without-analyzer" "--with-pgo" 
Server API Apache 2.0 Handler 
Virtual Directory Support enabled 
Configuration File (php.ini) Path C:\Windows 
Loaded Configuration File (none) 
Scan this dir for additional .ini files (none) 
Additional .ini files parsed (none) 
PHP API 20151012 
PHP Extension 20151012 
Zend Extension 320151012 
Zend Extension Build API320151012,TS,VC14 
PHP Extension Build API20151012,TS,VC14 
Debug Build no 
Thread Safety enabled 
Zend Signal Handling disabled 
Zend Memory Manager enabled 
Zend Multibyte Support disabled 
IPv6 Support enabled 
DTrace Support disabled 
Registered PHP Streams php, file, glob, data, http, ftp, zip,  
compress.zlib, phar 
Registered Stream Socket Transports tcp, udp 
Registered Stream Filters convert.iconv.*, mcrypt.*, mdecrypt.*, 
string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, 
consumed, dechunk, zlib.* 

軟件/硬件

- Windows Server 2016R2 
- PHP 7.0.13 
- Phpmyadmin (C:\Apache24\htdocs\phpmyadmin) 
- Apache 2.4 
- MySQL 5.7.1 

我感謝所有幫助您可以給我。不知道要採取什麼措施。

回答

0

我在Windows 10上使用Bitnami WAMP Stack版本7.0.12-0(不確定您是否使用Bitnami或其他WAMP堆棧,或者沒有)。我放棄了故障排除(你有沒有嘗試運行命令:

cd \php 
deplister ext\php_mbstring.dll 

在命令提示符,檢查依賴關係中php_mbstring.dll,看看你得到任何「NOTFOUND」錯誤),只是安裝了最新的Bitnami版本,7.0.13-1,然後phpMyAdmin立即工作。 (在之前版本的Bitnami中,我稍微改變了我的httpd.conf和php.ini,所以我可能會因爲這些更改而破壞phpMyAdmin)。

0

我有同樣的問題 我剛剛更新php.ini文件

extension_dir = "C:/wamp/bin/php/php7.1.13/ext/" 

和更新的最新版本的phpmyadmin像 這充分擴展文件夾路徑,因爲phpmyadmin4.1.14是不兼容PHP7。我希望它能解決你的問題

相關問題