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

Can't access backend after upgrade to 4.13.41 #7121

Closed
jochi44 opened this issue Apr 16, 2024 · 10 comments · Fixed by #7122 or #7123
Closed

Can't access backend after upgrade to 4.13.41 #7121

jochi44 opened this issue Apr 16, 2024 · 10 comments · Fixed by #7122 or #7123
Labels
Milestone

Comments

@jochi44
Copy link

jochi44 commented Apr 16, 2024

Affected version(s)

4.13.41

Description

After upgrading one of my Contao installations i can not access the backend.
An "internal server error" is shown:

An exception has been thrown during the rendering of a template ("Call to undefined function Contao\CoreBundle\Twig\Extension\twig_escape_filter_is_safe()").

@leofeyer
Copy link
Member

We have just added a conflict for Twig 3.9. Please update the dependencies again.

@jochi44
Copy link
Author

jochi44 commented Apr 17, 2024

We have just added a conflict for Twig 3.9. Please update the dependencies again.

I think the conflict needs to be added for Contao 5.3 as well.

@minstyle
Copy link

minstyle commented Apr 17, 2024

I have the same problem. I can't update from Contao 4.4. (PHP 7.3) to Contao 4.13.41 (PHP 8.2).

@fritzmg
Copy link
Contributor

fritzmg commented Apr 17, 2024

I have the same problem. I can't update from Contao 4.4. (PHP 7.3) to Contao 4.13.41 (PHP 8.2).

contao/conflicts#61

@minstyle
Copy link

@fritzmg It doesn't work for me to add "twig/twig": "3.9.0" in conflict as @zoglo mentioned. The issue still exists and the same error is thrown.

@fritzmg
Copy link
Contributor

fritzmg commented Apr 17, 2024

@fritzmg It doesn't work for me to add "twig/twig": "3.9.0" in conflict as @zoglo mentioned. The issue still exists and the same error is thrown.

That's because there exists twig/twig: 3.9.1 now. See #7121 (comment)

@minstyle
Copy link

minstyle commented Apr 17, 2024

After adding "twig/twig": "2.7.0 || 3.9.0 || 3.9.1" in composer.json (contao/conflicts@cd4fb80) it works. Thank's @fritzmg 👍

@zoglo
Copy link
Contributor

zoglo commented Apr 17, 2024

@minstyle you should use

"twig/twig": "2.7.0 || 3.9.*"

@minstyle
Copy link

minstyle commented Apr 17, 2024

@zoglo OK, twig/twig v3.8.0 is installed now. (See also contao/conflicts@aef5ed9)

@fritzmg
Copy link
Contributor

fritzmg commented Apr 17, 2024

After adding "twig/twig": "2.7.0 || 3.9.0 || 3.9.1" in composer.json (contao/conflicts@cd4fb80) it works. Thank's @fritzmg 👍

You don't need to add 2.7.0.

@minstyle you should use

"twig/twig": "2.7.0 || 3.9.*"

Be careful, if you add 3.9.* yourself, you will need to keep track of #7122 and remove it once released.

This was linked to pull requests Apr 17, 2024
leofeyer added a commit that referenced this issue Apr 17, 2024
Description
-----------

Fixes #7121

Commits
-------

16121b8 Twig 3.9 compatibility
6714ba0 Use the not deprecated escape() method if available
09c6f4b Add yield support for Twig add node (see #12)
ba8baa7 Fix the ReflectionMethod arguments

Co-authored-by: ausi <martin@auswoeger.com>
leofeyer added a commit that referenced this issue Apr 17, 2024
Description
-----------

Fixes #7121

Requires that twigphp/Twig#4023 is merged and Twig 3.9.1 is released first.

Commits
-------

793be75 Twig 3.9 compatibility
fd9e511 Use the not deprecated escape() method if available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants