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

Can't retrieve (GQL) or save (control panel) humans template #400

Closed
tremby opened this issue Apr 12, 2022 · 1 comment
Closed

Can't retrieve (GQL) or save (control panel) humans template #400

tremby opened this issue Apr 12, 2022 · 1 comment
Labels

Comments

@tremby
Copy link

tremby commented Apr 12, 2022

Describe the bug

I get an error when trying to retrieve or save the humans template.

To reproduce

Steps to reproduce the behaviour:

  1. Query via GQL for seomatic { frontendTemplates { contents filename } } or seomatic { frontendTemplateContainer }
  2. 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
  3. Go to control panel -> SEOmatic -> global SEO -> humans
  4. See default humans.txt template (which does not contain the string defined at all)
  5. Without editing click to save
  6. 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

graphql query and response showing error message
seomatic control panel showing error message hiding at bottom of text field

Versions

  • Plugin version: 4.0.0-beta.7
  • Craft version: 4.0.x at 38a1659
@tremby tremby added the bug label Apr 12, 2022
@khalwat
Copy link
Collaborator

khalwat commented Apr 13, 2022

I think you've posted this on the wrong repository; this repository is for an old version of SEOmatic for Craft CMS version 2

You likely want: https://github.com/nystudio107/craft-seomatic

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

No branches or pull requests

2 participants