After upgrading phpmyadmin lots of warnings and notices is being shown while running any task. errors is shown below.
Deprecation Notice in .vendortwigtwigsrcLoaderFilesystemLoader.php#40
realpath(): Passing null to parameter #1 ($path) of type string is deprecated
Deprecation Notice in .vendortwigtwigsrcMarkup.php#35
Return type of TwigMarkup::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Deprecation Notice in .librariesclassesUtil.php#1936
Function strftime() is deprecated
6
Answers
From now you can turn off errors following these two steps:
/usr/share/phpmyadmin/themes/pmahomme/layout.inc.php
<?php error_reporting(0);
Please note that this is not official information!
if you use a wamp server then you can put down the downloaded files from [https://www.phpmyadmin.net/downloads/] of PHPMyAdmin new version on apps folder. then go to alias folder and you have to change in
phpmyadmin.conf
then Save and Restart wamp services
For PHP 7.3+
Edit the following file : config.inc.php. It can be located in /etc/phpmyadmin/config.inc.php or in /usr/share/phpmyadmin/config.inc.php
I had the same issue after upgrading my PHP Version to 8.1 using MAMP’s phpmyadmin 5. I could only find out a way to get rid of it thanks to this here:
Preferences
Tab in your phpmyadmin interface (you have to be in your main phpmyadmin page for this tab to show up, and not have any table / db selected)Functions
and scroll down toError Reports
and selectNever send
and click onOK
to save it. done!I though that this should technically correspond to this:
$cfg['SendErrorReports'] = 'never';
But as it seems, there are additional steps involved. Anyway, working now!
I just used the standard update function from MAMP PRO itself. Menu MAMP PRO > Check for Updates… There i Run Install on the update phpMyAdmin5 5.1.0 -> 5.2.0. That worked for me.
I had the same error message on Debian 11 after switching from php7.4 to php8.1.
What solved the issue was upgrading phpMyAdmin to the latest version manually.
=======Steps to followed=====
Back up phpMyAdmin
You should back up your current phpMyAdmin folder by renaming it.
Create a new phpMyAdmin folder
Change to the directory
Download and Extract phpMyAdmin
Now extract
You should see a new folder phpMyAdmin-*-all-languages
We want to move the contents of this folder to
/usr/share/phpmyadmin
Make a copy of /usr/share/phpmyadmin/config.sample.inc.php
Now edit the
config.inc.php
$ Ctrl+x
/* to save the file */Go to your
site/phpmyadmin
check all error is cleared.=================================================
YOU MAY ENCOUNTER THIS ERROR MESSAGE ON PHPMYADMIN /INDEX.PHP
IT MAY SAY SOMETHING LIKE:
===SOLUTION==
Edit the config.inc.php again
add or replace this line
Cleanup —
You can now delete the tar.gz file and the empty folder.
And if you’re certain your new phpMyAdmin install is working correctly you can delete the backup folder.