Call to Undefined Function _() Error - PHPmyadmin

Call to undefined function __() error - phpMyAdmin

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.

phpMyAdmin Fatal error: Call to undefined function __()

The problem was the wrong permissions for the /etc/phpMyAdmin directory. The web server user, apache, had proper permissions for the session.save_path directory, but apache couldn't read from my config.inc.php file. Changing the owner of /etc/phpMyAdmin to the apache user and changing the permissions to 755 solved the problem.

Looking at the checkConfigSource() function in Config.class.php led me to believe that if the problem was with accessing the configuration file then I would have received the error 'Existing configuration file (%s) is not readable.' instead of Call to undefined function __() Does anyone know why that wasn't the case?

This was a pretty basic problem/solution, but unless someone suggests otherwise I think I'll leave it up since this exact problem/solution isn't addressed in other discussions of the Fatal error: Call to undefined function __() in /usr/share/phpMyAdmin/libraries/core.lib.php error when trying to start phpMyAdmin after installation.

phpMyAdmin error call to undefined function

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';
}
}

Call to undefined function __() error - phpMyAdmin with LNMP

From your log message, it seems that the mbstring extension is missing:

/usr/share/phpmyadmin/libraries/common.inc.php(90): PMA_warnMissingExtension('mbstring', true)

Since you are using Debian, please use this to install the extension:

sudo apt-get install php7.0-mbstring

WAMP: Fatal error: Call to undefined function mb_detect_encoding() .... When going to localhost/phpmyadmin

This sounds like you have a rouge php.ini file somewhere and it is loading the wrong one.

There are actually 2 php.ini files in WAMPServer as in most PHP/Apache installations.

One is called \wamp\bin\php\{phpversion}\php.ini and this is only used by the PHP CLI

The other is called \wamp\bin\php\{phpversion}\phpForApache.ini and is used when you are running PHP through Apache.

If you use the wampmanager menus you will edit the one used by Apache/PHP i.e.

wampmanager => PHP -> php.ini

However if you have actually edited the correct php.ini then it is likely you have a rouge version of php.ini somewhere on your system.

Run the phpinfo() link again from the wampmanager homepage and check this parameter which is shown on the first section of the output.

Loaded Configuration File 

It should be pointing to \wamp\bin\php\php5.5.12\phpForApache.ini in your case.

If its pointing somewhere else then you probably tried to install PHP and Apache manually before finding WAMPServer and that has left a php.ini file somewhere where Apache is finding it.

Here is the PHP Manual page that defines the search path order used by Apache when looking for a php.ini file. This may help you find and remove any rouge versions of php.ini

Fatal error: Uncaught Error: Call to undefined function mysql_connect()

mysql_* functions have been removed in PHP 7.

You probably have PHP 7 in XAMPP. You now have two alternatives: MySQLi and PDO.

Fatal error: Uncaught Error: Call to undefined function ereg()

use preg_match() instead of ereg() function.



Related Topics



Leave a reply



Submit