Clement.Cvl Clement.Cvl - 1 year ago 437
MySQL Question

phpMyAdmin error call to undefined function

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\nStack trace:\n#0 /usr/share/phpmyadmin/libraries/core.lib.php(321): PMA_fatalError('The [a@./')\n#1 /usr/share/phpmyadmin/libraries/ PMA_warnMissingExtension('json', true)\n#2 /usr/share/phpmyadmin/index.php(12): require_once('/usr/share/phpm...')\n#3 {main}\n 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...

Answer Source

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/';
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download