'Phpmyadmin error 500 when selecting database from web gui

i'm facing with this lately after the update to Ubuntu 21.10. PHP version was upgraded to 8.0 but i was having problems with some joomla and wordpress sites. So i tried to switch back to PHP 7.4. After this get the following when i'm tryin to select a database enter image description here

In apache2 error.log i get this message

Thu Nov 25 09:27:58.943302 2021] [php7:error] [pid 89321] [client 20.21.1.150:56534] PHP Parse error:  syntax error, unexpected 'static' (T_STATIC) in /usr/share/php/Symfony/Component/Cache/CacheItem.php on line 67

my mysql version is 8.0.27

Is a privileges issue, a bug or something else? Any help will valuable



Sources

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

Source: Stack Overflow

Solution Source