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

“Array to string conversion” Error when using {{ title }} #114

Open
linusrogge opened this issue Oct 8, 2024 · 2 comments
Open

“Array to string conversion” Error when using {{ title }} #114

linusrogge opened this issue Oct 8, 2024 · 2 comments
Labels
needs: information ❓ Requires more information to proceed type: bug 🐛 Is a bug; fixes a bug

Comments

@linusrogge
Copy link

In the “Title-Template” field, when trying to type {{ title }} and the brackets are left empty at first, as soon as the first closing bracket is typed (like this {{}), I get a modal prompting “Array to string conversion”.

Screenshot 2024-10-08 at 5 41 50 PM

If, however, I enter at least one character or more after the two opening brackets, everything is fine.

@tobimori
Copy link
Owner

tobimori commented Oct 8, 2024

I wonder if this is related to an issue in Kirby core or Kirby SEO, iirc I don't do any custom replacements but it just uses Kirby's toString() under the hood which applies the logic (similar to how it works in blueprints)

@tobimori tobimori added type: bug 🐛 Is a bug; fixes a bug needs: information ❓ Requires more information to proceed labels Oct 8, 2024
@sswany
Copy link

sswany commented Nov 15, 2024

Thought I'd add that I also have the same issue. I'm using a Page model with the metaDefaults function, but if I set the og:image manually on the page, I get that error when saving the page.

CleanShot 2024-11-14 at 19 33 35@2x

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: information ❓ Requires more information to proceed type: bug 🐛 Is a bug; fixes a bug
Projects
None yet
Development

No branches or pull requests

3 participants