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' %}

2022-05-16_163807

Steps to replicate

updated today

Workaround

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 57 (56 by maintainers)

Most upvoted comments

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.

@arvislacis @damsfx can you confirm that with latest wip/1.2 & php8.0 the problem is gone?

Not sure what changed but it doesn’t trigger anymore for me.

Still the same issue with:

twig/twig                           v3.4.1              
winter/storm                        dev-wip/1.2 82c880b 
winter/wn-backend-module            dev-wip/1.2 9104021 
winter/wn-cms-module                dev-wip/1.2 3bc126d 
winter/wn-system-module             dev-wip/1.2 177f604 

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.