8000 Uncaught Error: Unknown named parameter · Issue #38089 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Uncaught Error: Unknown named parameter #38089

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

Closed
williamdes opened this issue Sep 7, 2020 · 6 comments
Closed

Uncaught Error: Unknown named parameter #38089

williamdes opened this issue Sep 7, 2020 · 6 comments

Comments

@williamdes
Copy link

Symfony version(s) affected 4.2.8 (https://github.com/phpmyadmin/phpmyadmin/blob/64f6b5c43522be49facbd95bee9197e811284c91/composer.json#L55)

Description

[11-Aug-2020 10:14:15 America/New_York] PHP Fatal error:  Uncaught Error: Unknown named parameter $create_add_field in D:\phpMyAdmin\vendor\symfony\dependency-injection\ContainerBuilder.php:1144
Stack trace:
#0 D:\phpMyAdmin\vendor\symfony\dependency-injection\ContainerBuilder.php(1144): ReflectionClass->newInstanceArgs(Array)
#1 D:\phpMyAdmin\vendor\symfony\dependency-injection\ContainerBuilder.php(618): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array, true, 'PhpMyAdmin\\Cont...')
#2 D:\phpMyAdmin\vendor\symfony\dependency-injection\ContainerBuilder.php(558): Symfony\Component\DependencyInjection\ContainerBuilder->doGet('PhpMyAdmin\\Cont...', 1)
#3 D:\phpMyAdmin\tbl_structure.php(67): Symfony\Component\DependencyInjection\ContainerBuilder->get('PhpMyAdmin\\Cont...')
#4 {main}
  thrown in D:\phpMyAdmin\vendor\symfony\dependency-injection\ContainerBuilder.php on line 1144

How to reproduce
PHP 8.0 beta 1 (phpmyadmin/phpmyadmin#16301)

Upstream bug: phpmyadmin/phpmyadmin#16301

@derrabus
Copy link
Member
derrabus commented Sep 7, 2020
8000

Oh, hello phpMyAdmin. ❤️

I'm actively fixing those kind of issues right now, but:

  • Symfony 4.2 is EOL and won't be patched for PHP 8.
  • PHP 8.0 beta1 won't be supported by Symfony because of breaking changes that have been introduced afterwards.

Please try to reproduce the problem with Symfony 4.4 on a more recent php 8 snapshot.

fabpot added a commit that referenced this issue Sep 7, 2020
This PR was merged into the 3.4 branch.

Discussion
----------

[DI] fix ContainerBuilder on PHP8

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38089
| License       | MIT
| Doc PR        | -

Commits
-------

a3275a7 [DI] fix ContainerBuilder on PHP8
@fabpot fabpot closed this as completed Sep 7, 2020
@fabpot
Copy link
Member
fabpot commented Sep 7, 2020

Fixed in 3.4, will be part of 4.4/5.1/and next soon

@tonydream888
Copy link
tonydream888 commented Dec 16, 2020

The same error happen to me today after moving to new server (CentOS 7, PHP 8), more exactly when I use phpMyAdmin. The symfony that currently installed is version 4, how to solve the problem? Can someone give a step by step instruction to upgrade the symfony here? Thanks

@williamdes
Copy link
Author

The same error happen to me today after moving to new server (CentOS 7, PHP 8), more exactly when I use phpMyAdmin. The symfony that currently installed is version 4, how to solve the problem? Can I someone give a step by step instruction to upgrade the symfony here? Thanks

You need to use phpMyAdmin 5.0.4 or newer as mentioned here :)
phpmyadmin/phpmyadmin#16449 (comment)

@tonydream888
Copy link

I am already using 5.0.4, just checked

@derrabus
Copy link
Member

Please continue the discussion on the linked phpMyAdmin ticket or have a look at https://www.phpmyadmin.net/support/ for more support options.

@symfony symfony locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants
0