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

500 Error: PHP Fatal error: Call to undefined function array_is_list in ContainerBuilder.php #19092

Open
Mahdi-Abbariki opened this issue Apr 3, 2024 · 5 comments
Assignees
Labels
packaging An issue that affect Debian, Ubuntu or another form of packaging

Comments

@Mahdi-Abbariki
Copy link

Describe the Bug

After installation and configuration of phpMyAdmin, attempting to access it via the browser results in a 500 error code. The Apache log files indicate the following error:

PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Component\DependencyInjection\array_is_list() in /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php:1092

To Reproduce

  1. Install and configure phpMyAdmin.
  2. Open /phpmyadmin in the browser.

Expected Behavior

The phpMyAdmin login page should be displayed.

Server Configuration

  • Operating System: Debian 12
  • Web Server: Apache
  • Database Version: 10.11.6-MariaDB
  • PHP Version: 8.0.30
  • phpMyAdmin Version: 4:5.2.1+dfsg-1

Client Configuration

  • Browser: Chrome
  • Operating System: Ubuntu
@williamdes
Copy link
Member

This function is a PHP 8.1 function.
https://php.watch/versions/8.1/array_is_list

For some odd reasons you seem to not have the polyfill package that should provide the function.
Is there any chance that you would upgrade to PHP 8.1 ?

See: https://github.com/phpmyadmin/phpmyadmin/wiki/DebianUbuntu

@williamdes williamdes added the packaging An issue that affect Debian, Ubuntu or another form of packaging label Apr 6, 2024
@williamdes williamdes self-assigned this Apr 6, 2024
@MauricioFauth
Copy link
Member

@williamdes Is it a good idea to bump the PHP minimum version in index.php to the version present in Debian to avoid these type of issues? For the Debian package only, of course.

@williamdes
Copy link
Member

That was done and shipped in Ubuntu.
I think that will be required anyway.
Packaging people keep destroying backwards compat one way or another.
See https://bugs.debian.org/1036313
I discussed more with David on IRC and clearly one point of view remains: Debian is shipped with php X. Y, so packages only need to compat with that version.
No fucks given to older versions even if people actually do install them.

I do not share that point of view but it's starting to not be worth my time answering bugs that I did all my possible to avoid existing in the packaging work.

So yeah, php version will be required in some next version of the Debian package.

@Mahdi-Abbariki
Copy link
Author

@williamdes Thanks for your response! I appreciate the clarification. Unfortunately, upgrading to PHP 8.1 isn't an option for me at the moment due to various dependencies. However, I was able to successfully install and use phpMyAdmin ^5.2 by installing it via Composer.

@williamdes
Copy link
Member

williamdes commented Apr 17, 2024

phpMyAdmin on Debian and Ubuntu will now require PHP 8.2 since it is the version shipped with Debian/Ubuntu latest.

https://salsa.debian.org/phpmyadmin-team/phpmyadmin/-/commit/7320f10d11d953e11c50aa8864d401320cea4575

That does not make me happy, but I have no choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging An issue that affect Debian, Ubuntu or another form of packaging
Projects
None yet
Development

No branches or pull requests

3 participants