Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call to undefined function __() error - phpMyAdmin

Tags:

php

phpmyadmin

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.php on line 229     Call Stack     #   Time    Memory  Function    Location     1   0.0010  344984  {main}( )   ../index.php:0     2   0.0026  502720  require_once( '/usr/share/phpMyAdmin/libraries/common.inc.php' )    ../index.php:12     3   0.0285  3836408 require( '/usr/share/phpMyAdmin/libraries/session.inc.php' )    ../common.inc.php:344     4   0.0288  3846488 PMA_fatalError( )   ../session.inc.php:97 

I use fedora 17 with PHP 5.5.7.

Any idea for solve problem?

like image 369
meysam Avatar asked Jan 20 '14 20:01

meysam


2 Answers

Check that your session directory is writable by the webserver process.

The best way to do so is to create your own phpinfo file; in any web accessible folder create a file (you can call it test.php or phpinfo.php or whatever you'd like) with the following content:

<?php phpinfo(); ?> 

Open that file in your browser (http://localhost/test.php or similar) and look for the line session.save_path. That's your session folder; make sure the permissions are suitable and see if that helps.

More information from a similar thread.

like image 88
Isaac Bennetch Avatar answered Oct 16 '22 21:10

Isaac Bennetch


I just set up CentOS 7 and tried phpmyadmin and was having the same problem. Hope this helps

I set the correct permissions to the sessions directory and restarted apache, even disabled SELinux but was shown the same error

I did not have the php-mbstring installed - once i did that, it worked

sudo yum install php-mbstring 

Check the requirements for phpmyadmin

like image 31
itz_nsn Avatar answered Oct 16 '22 19:10

itz_nsn