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

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...

  • 写回答

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';
                   }
       }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?