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
Symfony 5 incompatibility #24
Comments
Even if you pass the TreeBuilder-Error you will get an error later on creating new redirect rules because the router option "generator_cache_class" isn't available anymore in Symfony 5 https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.0.md Maybe additional changes are needed |
Yes, I confirm: terminal42/contao-url-rewrite prevents contao upgrade to 4.11 Fatal error: Uncaught ArgumentCountError: Too few arguments to function Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct(), 0 passed in /www/htdocs/domain.tld/vendor/terminal42/contao-url-rewrite/src/DependencyInjection/Configuration.php on line 24 and at least 1 expected in /www/htdocs/domain.tld/vendor/symfony/config/Definition/Builder/TreeBuilder.php:26 |
@adera-web The update itself was not prevented. The error happens after updating, because Symfony gets updated to version 5 as well with Contao 4.11. As already mentioned in the initial post you can work around the error for now by forcing the installation of Symfony 4. |
Should be fixed with #25 |
contao-url-rewrite
currently cannot be installed with Contao 4.11, which is fine, but there is a problem if I'm trying to upgrade existing 4.10 installation whencontao-url-rewrite
is already installed.post-update-cmd
fails withScript @php vendor/bin/contao-setup handling the post-update-cmd event returned with error code 255
, andcontao-console
is broken with the following stack trace:On a project level, this can be solved by locking Symfony at
4.4.*
.See also contao/contao#2844 (comment)
The text was updated successfully, but these errors were encountered: