Closed robbeman closed 2 years ago
TypeError count(): Argument #1 ($value) must be of type Countable|array, string given
https://github.com/thepixelage/craft-fragments/blob/4def4555f7400380fb971a59f4592dd278eb245a/src/elements/db/FragmentQuery.php#L64
myFragments
{% do craft.app.elements.eagerLoadElements( className(entry), [entry], [ 'myFragments', ] ) %}
@robbeman This is now fixed in 1.1.3, but you will need to re-save the fragment to make it re-save the JSON data correctly.
Thank you so much for being this quick. 🙏
https://github.com/thepixelage/craft-fragments/blob/4def4555f7400380fb971a59f4592dd278eb245a/src/elements/db/FragmentQuery.php#L64
Reproduction
myFragments