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

[3.3.1.1] Error 'Variable "CraftEdition" does not exist' when saving entries with validation failures #4898

Closed
ghost opened this issue Sep 7, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 7, 2019

Description

This is a weird one, as it happens in some sections, but not everywhere.

If an entry with validation errors (e.g. empty mandatory field) is saved, there is an error Variable "CraftEdition" does not exist. in ...\src\templates\_layouts\cp.html line 61

This variable seems to be set in web\twig\Extension.php line 1113 , yet the templateMode is set to 'site' in this cases.

Reverting the changes in craft\web\View::renderString() and renderObjectTemplate() fixes the error provisionally for us.

/sh on behalf of @wsydney76.

Additional info

  • Craft version: 3.3.1.1
@ghost
Copy link
Author

ghost commented Sep 8, 2019

Seems to happen if there is a twig template snippet evaluated when saving, either as title format or upload location of an asset field.

/sh

@ghost
Copy link

ghost commented Sep 8, 2019

I had the error after i upgraded to 3.3.1.1

@brandonkelly
Copy link
Member

Thanks for reporting that! Just released 3.3.1.2 with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant