winter: Error when inserting component through twig
Winter CMS Build
Other (please specify below)
PHP Version
8.0
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
My local website is down after today’s update (Winter CMS 1.2)
The error is caused by the code inserted into the file \plugins\webvpf\acme\components\item\default.htm
:
{% component 'ShareButtons' %}
Steps to replicate
updated today
Workaround
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 57 (56 by maintainers)
I’m sending a fix upstream to Twig to resolve the issue - https://github.com/twigphp/Twig/pull/3719.
I fixed it as in a pull request, everything worked for me. The errors are gone.
Still the same issue with:
and PHP 8.0.20 in an Windows/Nginx environment.
Something a bit weird is going on… because I did
composer update
once again today and it works fine now (so far no error in pages), without any changes in my code although yesterday I did some server management work and cache cleaning etc and reconfiguration, maybe cache was the issue…@WebVPF could comment on this…, form my side everything looks fine now.
I am not 100% sure but this may be related to:
So the fix is already deployed and should be fine soon…, I will let you know later.