-
Notifications
You must be signed in to change notification settings - Fork 18
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
Both regex and runtime Antlers parsers trip up with meta keywords #143
Comments
Regression seems to have appeared in |
I was debugging exactly the same issue today. The exception happens in Statamic\Modifiers::joinplode in the implode() function. When using the regex parser, the Strangely enough, implode() seems to handle the arrays in array quite well on UNIX. The code runs perfectly on my server (PHP 8.1.8). However it crashes on my Mac (PHP 8.1.9, also tested on PHP 8.1.4). |
Thanks all for your work on debugging this, we've had some time to review internally. It looks like there are two separate issues here but both appear to be upstream and will require action on Statamic's part to fix. "Array to string conversion"... error Sections not working with regex parser Thanks, |
Fixed in 2.0.29 |
Reproducible repository (
seo-bug
branch): https://github.com/ncla/statamic-bugs/tree/seo-bugConsider the following:
layout.antlers.html
home.antlers.html
home.md
With Antlers parser set to
regex
The string "sus" from section/yield combo does not appear.
If I remove
{{ aardvark-seo:head }}
fromlayout.antlers.html
, the "sus" string does appear in output.With Antlers parser set to
runtime
Without any changes done in previous scenario, it throws exception.
Doing one of the following fixes the issue:
{{ aardvark-seo:head }}
fromlayout.antlers.html
meta_keywords
array from home.mdphp please support:details
outputThe text was updated successfully, but these errors were encountered: