Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpmyadmin broken after using ppa:phpmyadmin/ppa (unknown named parameter $$response - ContainerBuilder.php) #17187

Open
kanlukasz opened this issue Nov 16, 2021 · 7 comments
Assignees
Labels
Bug A problem or regression with an existing feature duplicate packaging An issue that affect Debian, Ubuntu or another form of packaging
Projects

Comments

@kanlukasz
Copy link

kanlukasz commented Nov 16, 2021

Describe the bug

So far I have used php7.x and phpmyadmin from the official Ubuntu package (everything worked fine)
Now I have upgraded to php8 using ppa:ondrej (all works fine here)

Then I wanted to update phpmyadmin according to this documentation:

sudo add-apt-repository ppa:phpmyadmin/ppa
sudo apt-get update
sudo apt-get install phpmyadmin

After that:

  • I reloaded Apache
  • cleared cache / cookies
  • opened localhost/phpmyadmin

And the effect is as follows:

Fatal error: Uncaught Error: Unknown named parameter $$response in /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php:1140
Stack trace:
#0 /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php(1140): ReflectionClass->newInstanceArgs()
#1 /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php(609): Symfony\Component\DependencyInjection\ContainerBuilder->createService()
#2 /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php(555): Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
#3 /usr/share/phpmyadmin/libraries/classes/Routing.php(186): Symfony\Component\DependencyInjection\ContainerBuilder->get()
#4 /usr/share/phpmyadmin/index.php(18): PhpMyAdmin\Routing::callControllerForRoute()
#5 {main} thrown in /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 1140

Screenshots

image

Server configuration

  • Operating system: Windows 10 with WSL2 - Ubuntu 20.04 focal
  • Web server: Apache
  • Database version: 10.3.31-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04
  • PHP version: 8.0.12
  • phpMyAdmin version: from ppa:phpmyadmin/ppa (5.1.1)
@williamdes
Copy link
Member

Hi!
This looks just like #16968

Let me know if you find anything useful in #16968
This error is out of the scope of our code base unfortunately, it's a Symfony bug.

@williamdes williamdes self-assigned this Nov 16, 2021
@williamdes williamdes added Bug A problem or regression with an existing feature duplicate packaging An issue that affect Debian, Ubuntu or another form of packaging labels Nov 16, 2021
@williamdes williamdes added this to Needs triage in issues via automation Nov 16, 2021
@kanlukasz
Copy link
Author

Thank you for the quick reply.

I'm not sure if any solution from #16968 is okay with me, but maybe rolling back phpmyadmin can fix it temporarily? , for example to 5.0.X? Is it possible with your PPA? How?

Or any diffrent way? I generally don't need the latest version. I just want it to run on PHP 8

@williamdes
Copy link
Member

It's not possible to have multiple versions on the PPA but you could try to install the deb from another source like another Ubuntu or Debian

See the Wiki for install methods on Ubuntu/Debian

@williamdes
Copy link
Member

The alternative could be to install phpMyAdmin by overriding the files in the installed directory by the extracted bundle from our website

I feel wrong to not be able to provide a correct solution from a packaging perspective but I am not responsible of packaging the symfony packages. Anyway you already read the thread about all that complicated issue ^^

@kanlukasz
Copy link
Author

kanlukasz commented Nov 17, 2021

Another idea that I have is to install phpmyadmin "independently".
I mean installation in /var/www/* via composer. What do you think about it ?

But here I have doubts about what to do with the current installation via ppa?
Can I somehow uninstall it safely? Should I do this?
Or should i rollback to official apt package? How? I feel very confused 😕

@williamdes
Copy link
Member

Hi @kanlukasz

Did you try apt purge phpmyadmin to clean the installed package ?

I would suggest you to then use the zip file from our website

@INDIGO9777
Copy link

in nginx settings file switch php version from
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
on the
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A problem or regression with an existing feature duplicate packaging An issue that affect Debian, Ubuntu or another form of packaging
Projects
issues
  
Needs triage
Development

No branches or pull requests

3 participants