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

18,503

Solution 1

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

Solution 2

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)...

Solution 3

I've solved upgrading to the most recent version of Phpmyadmin 4.8.2

Solution 4

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

Share:
18,503
Jean-Cédric Hamel
Author by

Jean-Cédric Hamel

Updated on June 15, 2022

Comments

  • Jean-Cédric Hamel
    Jean-Cédric Hamel almost 2 years

    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
    
  • Jean-Cédric Hamel
    Jean-Cédric Hamel almost 6 years
    Tried your post but no luck...same error...restarted PhPMyAdmin and MySQL..
  • Jean-Cédric Hamel
    Jean-Cédric Hamel almost 6 years
    Tried it and it failed as well...same error...also changed phpmyadmin to phpMyAdmin on line 1545
  • Akshay Kulkarni
    Akshay Kulkarni about 5 years
    If you are using XAMPP or WAMP, try deleting content under tmp folder, after following these steps.
  • Crazy Developer
    Crazy Developer over 3 years
    It worked for me. I'm not using mysql in Xampp. I have installed MYSQL Server Community Edition. After installing Community edition i got this error. And solved now