-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Static Pages 2.0.2 on Winter 1.2.0 - Unable to add global "this" as the runtime or the extensions have already been initialized. #638
Comments
How are you changing the language? Changing the language to FR on https://spatialmedia.ca/fr doesn't trigger the issue. |
Hello @LukeTowers This trigger is shown when i move my existing theme with all is content and layouts. If i delete all the static pages on the theme, and create new content, the issue stops. I have a big website will a lot of pages, and mv de theme and all is content of the static pages were nice. Do you want me to publish online so you can check it ? Kind Regards |
@az-vm yes please, we'll need to see it to check what's triggering the issue in your case. |
I don't see the error on any of the pages, what triggers it? |
|
Hello @LukeTowers Did you have look at my email ? |
i have the same issue if i had an twig-put in my code:
"intro" is a placeholder, I need in my layouts |
@az-vm I have not had a chance to yet, no. @Kuse-GmbH why are you putting Twig inside of two |
my layout contains this code:
if I save a static page, its generate a code like
if it helps I can post the complete layout-file BTW: in october 1 there was no problem with identical codes (over 2 jeahrs ago), I dont't know if this information helps |
@LukeTowers ok, but please check it up. @Kuse-GmbH Thank you for the feedback. Here is the thing: I got this error using winter 1.2 when i try to change locale, but if i delete the static-page and add again with the same layout, the error does not occour. With Octobercms dont have this problem with version 1, 2 or 3. |
some new infos: the placeholder from my previous post doesn't seem to have any influence, as it also affects pages without placeholders. EDIT: delete and recreate does not bring me any improvement EDIT 2: in my case it was due to
in my dev-version of cms.php. Wenn I clear the cache with the dashboard-widget in Romanov.ClearCacheWidget-Plugin, the error occurs one time, too (if that helps). After a EDIT 3: i currently assume it affects all pages of an additional language that are not yet cached/accessed for the first time |
Hello folks, This issue is solve by the new versions of Winter Pages - 2.0.2, and Winter Translate - 2.1.0 , now all works fine on Winter CMS 1.2.1 with PHP 8.0 and 8.1. Don´t upgrade on the backend, remove the older version and install it on composer, for now its the only way to update it. So i will close this subject. Thank you, |
Winter CMS Build
1.2
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
Winter.Pages, Winter.Translate
Issue description
Hello,
First i want to thank you all for the great work done so far.
I was thinking to move to the new version of winter (1.2.0) and i done a fresh install of winter and plugins and copy my theme used on the version 1.1.9 to the theme folder.
And when i stay on the default language set, there is no problems, when i change to other locale, i got this error:
Unable to add global "this" as the runtime or the extensions have already been initialized.
/Applications/MAMP/htdocs/winter_1_2/vendor/twig/twig/src/Environment.php line 766
Event Log:
Any one with this error ?
Thank You!
Steps to replicate
Change from default language for example -> from EN -> DE language.
Workaround
No response
The text was updated successfully, but these errors were encountered: