Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Deprecation Notice" error in PhpMyAdmin with ubuntu 20.04, php8.0

Tags:

phpmyadmin

I'am getting error when i login to phpmyadmin

Deprecation Notice in ./libraries/classes/Di/ReflectorItem.php#82 Method ReflectionParameter::getClass() is deprecated

Backtrace

./libraries/classes/Di/ReflectorItem.php#50: PhpMyAdmin\Di\ReflectorItem->_resolveArgs( array, array, ) ./libraries/classes/Di/FactoryItem.php#27: PhpMyAdmin\Di\ReflectorItem->invoke(array) ./libraries/classes/Di/Container.php#62: PhpMyAdmin\Di\FactoryItem->get(array) ./libraries/classes/Di/AliasItem.php#44: PhpMyAdmin\Di\Container->get( string 'PhpMyAdmin\Controllers\Database\DatabaseStructureController', array, ) ./libraries/classes/Di/Container.php#62: PhpMyAdmin\Di\AliasItem->get(array) ./db_structure.php#35: PhpMyAdmin\Di\Container->get( string 'DatabaseStructureController', array, )

like image 386
xWredny Avatar asked Jan 25 '23 12:01

xWredny


2 Answers

You can also disable notifications and warnings adding this line to config.inc.php:

$cfg['SendErrorReports'] = 'never';

Source: PMA Docs

like image 90
Rusher Avatar answered Mar 05 '23 18:03

Rusher


This is most likely caused by using PHP 8 and PHPMyAdmin < v5 either upgrade you PHPMyAdmin to 5.0 or higher or downgrade your PHP to 7

like image 24
LogicallyUnfit Avatar answered Mar 05 '23 17:03

LogicallyUnfit