You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error when trying to retrieve or save the humans template.
To reproduce
Steps to reproduce the behaviour:
Query via GQL for seomatic { frontendTemplates { contents filename } } or seomatic { frontendTemplateContainer }
See response, which has Error rendering template string -> The "defined" test only works with simple variables in "__string_template__9d8842c587f4804bb2efb8391bf2419a" at line 4. where I expect the humans.txt content to be
Go to control panel -> SEOmatic -> global SEO -> humans
See default humans.txt template (which does not contain the string defined at all)
Without editing click to save
See error. It is partially obscured under the bottom of the text field. Error rendering template string -> The "defined" test only works with simple variables in "__string_template__9d8842c587f4804bb2efb8391bf2419a" at line 4.
Expected behaviour
When retrieving and an error takes place, I expect not to get a response at all, or for graphql errors to be produced, or to get an empty result. In fact, the string I expect to contain the humans.txt content has a string error message in it. This is bad since I might inadvertently serve this error message as the file.
When saving the humans.txt template I expect it to save properly with no error.
Screenshots
Versions
Plugin version: 4.0.0-beta.7
Craft version: 4.0.x at 38a1659
The text was updated successfully, but these errors were encountered:
Describe the bug
I get an error when trying to retrieve or save the humans template.
To reproduce
Steps to reproduce the behaviour:
seomatic { frontendTemplates { contents filename } }
orseomatic { frontendTemplateContainer }
Error rendering template string -> The "defined" test only works with simple variables in "__string_template__9d8842c587f4804bb2efb8391bf2419a" at line 4.
where I expect the humans.txt content to bedefined
at all)Error rendering template string -> The "defined" test only works with simple variables in "__string_template__9d8842c587f4804bb2efb8391bf2419a" at line 4.
Expected behaviour
When retrieving and an error takes place, I expect not to get a response at all, or for graphql errors to be produced, or to get an empty result. In fact, the string I expect to contain the humans.txt content has a string error message in it. This is bad since I might inadvertently serve this error message as the file.
When saving the humans.txt template I expect it to save properly with no error.
Screenshots
Versions
The text was updated successfully, but these errors were encountered: