Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: Uncaught Error: Call to a member function exists() on null in C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php:1544

Just installed Xampp 7.2.4 and I get the following error trying to open the ADMIN for MySQL in xampp Control Panel v3.2.2. I had that setup on another workstation, same OS (Windows Server 2012 R2) same version of xampp but the error I get make no sens to me...any though? Already compare both install and they look similar.

Fatal error: Uncaught Error: Call to a member function exists() on null in C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php:1544 Stack trace: 
#0 C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php(2477): PhpMyAdmin\DatabaseInterface->postConnectControl() 
#1 C:\xampp\phpMyAdmin\libraries\common.inc.php(358): PhpMyAdmin\DatabaseInterface->connect(257) 
#2 C:\xampp\phpMyAdmin\index.php(26): require_once('C:\\xampp\\phpMyA...') 
#3 {main} thrown in C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php on line 1544
like image 648
Jean-Cédric Hamel Avatar asked May 01 '18 18:05

Jean-Cédric Hamel


3 Answers

I just had the same error after a brute force MySQL shutdown.

After tracking down the error in the code, it turned out that it was the browser cookie which was corrupted, preventing PHPMyAdmin to fetch the databases list.

In Google Chrome, you can flush the cookies by:

  1. Browse to your PHPMyAdmin page: http://localhost/phpmyadmin/
  2. Press the F12 key to open the developer tools
  3. In the top menu, go to the "application" tab
  4. In the left menu, click on the "clear storage" option.
  5. Click on the "Clear site data button".

Flush cookie with Chrome developer tools

like image 64
Jonathan Parent Lévesque Avatar answered Oct 14 '22 17:10

Jonathan Parent Lévesque


Go to xampp/phpmyadmin/libraries/classes/databaseintreface Open in sublime text go on line 1535 the code is written as ([zeroconf]==true) change it to ([zeroconf]!= true)...

like image 24
Hemant Avatar answered Oct 14 '22 19:10

Hemant


in the line 1544 , change "if ($GLOBALS['dblist']->databases->exists('phpmyadmin'))" for "if ($GLOBALS['dblist']->databases->exists('phpMyAdmin'))".

like image 25
beto33 Avatar answered Oct 14 '22 19:10

beto33