Today I upgraded PHPMyAdmin from version 5.1.1 to version 5.1.2 and got a warning with the following message: [Undefined array key "hide_connection_errors"].
If anyone knows how to fix it, please share the solution, thank you very much.
I have searched a bit on the internet to see if it had happened to someone else and apparently it is a bug that had already happened before in version 4.9.9.
I have searched a bit on the internet to see if it had happened to someone else and apparently it is a bug that had already happened before in version 4.9.9.
I share the solution that I found on github and that has worked for me: https://github.com/phpmyadmin/phpmyadmin/pull/17304/commits/b2fa57efa66e23de2b0c1bce63ae5dd9fdb3f262
I followed the instructions there, opening the DbiMysqli.php file in the following path -> C:\xampp\phpMyAdmin\libraries\classes\Dbal\DbiMysqli.php
I have replaced this line -> if ($server['hide_connection_errors']) {
For this one -> if (array_key_exists('hide_connection_errors',$server) && $server['hide_connection_errors']) {
I opened http://localhost/phpmyadmin/ again and the warning was gone.
I hope it helps you and if you find another solution, please share it, thank you very much. All the best.