wintercms / winter

Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.
https://wintercms.com
MIT License
1.36k stars 192 forks source link

Broken default email layout after upgrading to Twig 3.9.1 #1103

Closed goldmont closed 3 weeks ago

goldmont commented 5 months ago

Winter CMS Build

1.2

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

Hi,

After upgrading to Twig 3.9.1 from 3.8.0, I noticed that the footer in the default email layout is broken. The title too.

Before upgrade: image

After: image

I made no changes to the email layout. What could be the problem?

The email partial is the following:

==
<p>{{ content }}</p>
{% if additional_data is not empty %}
    <p>Informazioni aggiuntive:<br>{{ additional_data }}</p>
{% endif %}

Thanks.

Steps to replicate

Read above

Workaround

No response

josephcrowell commented 5 months ago

The maintenance team is aware. See these: https://github.com/wintercms/storm/commit/faf49137344e9bff44b995adb35ff0a7633e7d65 https://github.com/wintercms/winter/commit/d9eaf58eacaf821471779caa7e9833846caacd38 https://github.com/wintercms/winter/pull/1102

LukeTowers commented 5 months ago

For now just lock your twig version to 3.8