简体   繁体   English

由于此错误,我无法在Apache上运行PHPmyadmin

[英]I am unable to run PHPmyadmin on apache because of this error

This is what comes up when I try to go to localhost/phpmyadmin. 这是当我尝试转到localhost / phpmyadmin时出现的内容。 I have tried restarting Apache and my browser multiple times. 我尝试过多次重启Apache和浏览器。 I am just setting all of this up for the first time, so I'm not really sure how to phrase my question, and I don't really understand what the error is telling me, so any clarification on that would be greatly appreciated. 我只是第一次设置所有这些内容,所以我不确定如何表达我的问题,也不太了解错误告诉我的内容,因此请您对此进行任何澄清。

Fatal error: Uncaught Error: Call to undefined function __() in C:\Apache\htdocs\phpmyadmin\libraries\sanitizing.lib.php:135
Stack trace:
#0 C:\Apache\htdocs\phpmyadmin\libraries\Message.php(586): PMA_sanitize('Undefined index...', false, true)
#1 C:\Apache\htdocs\phpmyadmin\libraries\Message.php(650): PMA\libraries\Message::decodeBB('Undefined index...')
#2 C:\Apache\htdocs\phpmyadmin\libraries\Error.php(167): PMA\libraries\Message->getMessage()
#3 C:\Apache\htdocs\phpmyadmin\libraries\ErrorHandler.php(157): PMA\libraries\Error->getHash()
#4 C:\Apache\htdocs\phpmyadmin\libraries\ErrorHandler.php(121): PMA\libraries\ErrorHandler->addError('Undefined index...', 8, 'C:\\Apache\\htdoc...', 285, true)
#5 C:\Apache\htdocs\phpmyadmin\libraries\core.lib.php(285): PMA\libraries\ErrorHandler->handleError(8, 'Undefined index...', 'C:\\Apache\\htdoc...', 285, Array) #6 C:\Apache\htdocs\phpmyadmin\libraries\core.lib.php(312): PMA_getPHPDocLink('book.mbstring.p...')
#7 C:\Apache\htdocs\phpmyadmin\libraries\core.lib.php(954): PMA_warnM in C:\Apache\htdocs\phpmyadmin\libraries\sanitizing.lib.php on line 135

I am very new to programming, so I apologize if this is something that was resolved before. 我对编程非常陌生,所以如果这是以前解决过的,我深表歉意。 I am still unsure how to phrase many of my questions to get the results that I am looking for. 我仍然不确定如何表达我的许多问题来获得想要的结果。

I suggest you to follow this suggestion Unable to open phpmyadmin directory: Call to undefined function 我建议您遵循以下建议无法打开phpmyadmin目录:调用未定义函数

It worked for me. 它为我工作。

[...] ensure that the following extensions are enabled within your php.ini file: [...]确保在您的php.ini文件中启用了以下扩展名:

extension=php_bz2.dll
extension=mbstring.dll
extension=mysqli.dll

Take the time while doing so to verify that the extension_dir property is also properly set. 花费一些时间来验证extension_dir属性是否也已正确设置。 Remember to fully restart Apache using httpd -k stop and httpd -k start in order for changes made to php.ini or other configuration files to take effect as httpd -k restart sometimes doesn't propagate the changes. 请记住使用httpd -k stophttpd -k start完全重启Apache,以使对php.ini或其他配置文件所做的更改生效,因为httpd -k restart有时不会传播更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM