-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Compile Error: Declaration of Symfony\Component\HttpFoundation\InputBag::get(string $key, $default = null) must be compatible with Symfony\Component\HttpFoundation\ParameterBag::get($key, $default = null) #679
Comments
sorry for the late response, did you fix this in the meantime? Please try to manually update the manager (upload the latest version) to make sure no file corruption is the problem. |
Hi Andreas, thank you for your response. |
The issue seems to be somehow related to |
@fritzmg: Yes, you're right i'm using this optimist-theme |
The workaround would be to remove the package, update, then add the package again. However, @denniserdmann may be you can investigate this issue? |
We'll have a look at it. |
I did investigate but am unable to explain how this issue can be related to https://github.com/erdmannfreunde/optimist-theme-bundle in any way? There is no reference to those methods at all. Does someone have a guess? |
Update: I made some more tests and think Contao Manager itself is the problem.
|
I have ideas how this is happening, but not why. The Contao Manager ships with Symfony 4.4, which includes the |
Sounds like contao/contao#2183... |
There it's clear, because the Script Handler directly uses Symfony Process, which Composer has its own version of. But here it is not (yet) clear, as the plugin does not use InputBag directly. Without having tested this in depth my guess is the usage of the Symfony VarDumper within the plugin - because the VarDumper uses Symfony HttpFoundation components. I think @denniserdmann should remove the VarDumper output as this should not be done for any production code anyway. |
That's a good guess. However the |
After several tests, we come to the following conclusion:
|
Thanks a lot @denniserdmann . I was stuck for hours on this bug, chasing for coincident PHP executable path errors (PhpExecutableFinder.php) and Google did me led to here. Don't forget to add a Like:
Keywords: |
Thank you too. I was also able to solve my issue and will close it. |
Hi everybody, i've used contao-manager to update to version 1.5.2 of contao-manager. Since this update during system check of the contao-manager in the step the "Compeser Environment" ther comes following error message:
Error 500:
Compile Error: Declaration of Symfony\Component\HttpFoundation\InputBag::get(string $key, $default = null) must be compatible with Symfony\Component\HttpFoundation\ParameterBag::get($key, $default = null)
The Apache log says: GET /contao-manager.phar.php/api/server/composer HTTP/1.0
Contao manager log-file:
[25-Mar-2022 18:46:52 UTC] [2022-03-25 18:46:52] app.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Compile Error: Declaration of Symfony\Component\HttpFoundation\InputBag::get(string $key, $default = null) must be compatible with Symfony\Component\HttpFoundation\ParameterBag::get($key, $default = null)" at /var/www/vhosts/ABC.de/httpdocs/ABC/vendor/symfony/http-foundation/InputBag.php line 30 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Compile Error: Declaration of Symfony\Component\HttpFoundation\InputBag::get(string $key, $default = null) must be compatible with Symfony\Component\HttpFoundation\ParameterBag::get($key, $default = null) at /var/www/vhosts/ABC.de/httpdocs/ABC/vendor/symfony/http-foundation/InputBag.php:30)"} []
Is this an known issue ? The site itself and also the backend are OK but everytime i want to start contao-manager i get the same issue
The text was updated successfully, but these errors were encountered: