'phpmyadmin deprecation notice php 8

After upgrading phpmyadmin lots of warnings and notices is being shown while running any task. errors is shown below.

Deprecation Notice in .\vendor\twig\twig\src\Loader\FilesystemLoader.php#40 realpath(): Passing null to parameter #1 ($path) of type string is deprecated

Deprecation Notice in .\vendor\twig\twig\src\Markup.php#35

Return type of Twig\Markup::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Deprecation Notice in .\libraries\classes\Util.php#1936

Function strftime() is deprecated



Solution 1:[1]

From now you can turn off errors following these two steps:

  1. Open /usr/share/phpmyadmin/themes/pmahomme/layout.inc.php
  2. Add after <?php error_reporting(0);

Please note that this is not official information!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 lemon