duanpo2813
2016-08-30 13:04
浏览 138
已采纳

phpMyAdmin错误调用未定义的函数

when I go to localhost/phpmyadmin I have a white page and there is an error in the apache2 log's:

PHP Fatal error: Uncaught Error: Call to undefined function __() in /usr/share/phpmyadmin/libraries/core.lib.php:245 Stack trace: #0 /usr/share/phpmyadmin/libraries/core.lib.php(321): PMA_fatalError('The [a@./url.ph...') #1 /usr/share/phpmyadmin/libraries/common.inc.php(298): PMA_warnMissingExtension('json', true) #2 /usr/share/phpmyadmin/index.php(12): require_once('/usr/share/phpm...') #3 {main} thrown in /usr/share/phpmyadmin/libraries/core.lib.php on line 245

I search on the web and I see there is a problem with the php-mbstring, so I installed it but not fix the problem. I have also reinstall completely php, mysql and phpmyadmin...

图片转代码服务由CSDN问答提供 功能建议

当我转到localhost / phpmyadmin时我有一个白页,并且apache2日志中有错误:

PHP致命错误:未捕获错误:调用/usr/share/phpmyadmin/libraries/core.lib.php:245中的未定义函数__()堆栈跟踪:\ n#0 /usr/share/phpmyadmin/libraries/core.lib.php(321):PMA_fatalError('[a @。/ url.ph ...') #1 / usr / share / phpmyadmin / libraries /common.inc.php(298):PMA_warnMissingExtension('json',true) #2 /usr/share/phpmyadmin/index.php(12):require_once('/ usr / share / phpm ...') #3 {main} 在第245行的/usr/share/phpmyadmin/libraries/core.lib.php中抛出

我在网上搜索 我看到php-mbstring存在问题,所以我安装了它但没有解决问题。 我还完全重新安装了php,mysql和phpmyadmin ......

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duanpuluan0480 2016-08-30 13:39
    已采纳

    1) open the file : /usr/share/phpmyadmin/libraries/core.lib.php

    2) Add the below lines instead of 224-229

      if (!function_exists('__')) {
              include_once GETTEXT_INC;
                  if (defined(GETTEXT_INC)) {
                     include_once GETTEXT_INC;
                   } else {
                      include_once './libraries/php-gettext/gettext.inc';
                   }
       }
    
    已采纳该答案
    打赏 评论

相关推荐 更多相似问题