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 have two collections. One for “Posts” and one for my websites”. In both cases I have replaced the standard content with a “Bard” field. I have created a template for a grid list for the pages (based on a set) - that works great. Now I wanted to do the same for my posts and created the set via the backend in exactly the same way as for the pages.
After saving, none of my pages work anymore and the following error appears:
Internal Server Error
TypeError
strip_tags(): Argument #1 ($string) must be of type string, array given
In general, the system works great except for the error with this change, which I can't explain.
I have inserted a “dump($html)” in Str.php before line 84 and get the following result.
Here you can see that it is an array with only one element... but therefore does not work.
Bug description
I have two collections. One for “Posts” and one for my websites”. In both cases I have replaced the standard content with a “Bard” field. I have created a template for a grid list for the pages (based on a set) - that works great. Now I wanted to do the same for my posts and created the set via the backend in exactly the same way as for the pages.
After saving, none of my pages work anymore and the following error appears:
Internal Server Error
TypeError
strip_tags(): Argument #1 ($string) must be of type string, array given
vendor\statamic\cms\src\Support\Str.php :84
return strip_tags($html);
How to reproduce
Meine "post.yaml" aus dem Ordner "resources > blueprints > collections > posts"
after update:
Environment
Installation
Existing Laravel app
Additional details
In general, the system works great except for the error with this change, which I can't explain.
I have inserted a “dump($html)” in Str.php before line 84 and get the following result.
Here you can see that it is an array with only one element... but therefore does not work.
The text was updated successfully, but these errors were encountered: