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

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!