Call to undefined function __() error - phpMyAdmin

后端 未结 10 1491
温柔的废话
温柔的废话 2020-11-27 18:23

When i want run phpMyAdmin on my browser, that show me this error:

Fatal error: Call to undefined function __() in /usr/share/phpMyAdmin/libraries/core.lib.p         


        
10条回答
  •  半阙折子戏
    2020-11-27 18:58

    For me the error was in /usr/share/phpMyAdmin/libraries/sanitizing.lib.php.

    I increased php error reporting following this advice and commented the offending line in sanitizing.lib.php by prepending // in front.

    Then the error was more descriptive: Fatal error: require_once(): Failed opening required '/usr/share/php/php-gettext/gettext.inc' (include_path='.') in /usr/share/phpmyadmin/libraries/common.inc.php on line 477

    I noticed that I somehow lost the php-gettext debian package, but after installing it phpMyAdmin worked again.

提交回复
热议问题