Bug description
I upgrade to 5.70.0 and I get this error wherever I have {{ get_content from="{ entry:id }" }} or {{ current_user:entries_fieldtype }}. My users are in Eloquent.
array_flip(): Can only flip string and integer values, entry skipped
How to reproduce
Upgrade to Statamic 5.70.0 and try using get_content in Antlers or an entries fieldtype within the user blueprint.
Here's my user.yaml blueprint:
fields:
-
handle: studio_subscriptions
field:
type: entries
width: 50
collections:
- studios
Here's my template:
{{ current_user:studio_subscriptions scope="stud" }}
...
{{ /current_user:studio_subscriptions }}
Another example, same/related issue using get_content
Here's my show.yaml collection blueprint:
fields:
-
handle: cast_list
field:
type: grid
display: 'Cast List'
fields:
-
handle: actor
field:
type: entries
max_items: 1
mode: tags
collections:
- performers
label: '{{ first_name }} {{ last_name }} ({{ email }})'
sort: 'last_name:asc|first_name:asc'
width: 50
Here's my template:
{{ cast_list }}
{{ get_content:actor scope="act" }}
...
{{ /get_content:actor }}
{{ /cast_list }}
Maybe there's better syntax for me to use, but this setup was working prior to 5.70.0. I rolled back to 5.67.0 and confirmed it went back to normal, then upgraded to 5.68 and 5.69 without issue. It blows up in 5.70.
Logs
[2025-12-04 23:31:10] local.ERROR: array_flip(): Can only flip string and integer values, entry skipped {"view":{"view":"","data":[]},"userId":"f5edb239-8c26-44a6-8b55-c602debe9ec5","exception":"[object] (Spatie\\LaravelIgnition\\Exceptions\\ViewException(code: 0): array_flip(): Can only flip string and integer values, entry skipped at D:\\Websites\\cast98x\\resources\\views/shows/admin-only/_cast-list-row.antlers.html:8)
[stacktrace]
#0 D:\\Websites\\cast98x\\resources\\views/shows/admin-only/_cast-list-row.antlers.html(8): ()
#1 D:\\Websites\\cast98x\\resources\\views/shows/admin-only/_cast-list.antlers.html(27): ()
#2 D:\\Websites\\cast98x\\resources\\views/shows/_admin-only.antlers.html(35): ()
#3 D:\\Websites\\cast98x\\resources\\views/show.antlers.html(122): ()
#4 D:\\Websites\\cast98x\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\HandleExceptions.php(258): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'array_flip(): C...', 'D:\\\\Websites\\\\cas...', 160)
#5 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'array_flip(): C...', 'D:\\\\Websites\\\\cas...', 160)
#6 D:\\Websites\\cast98x\\vendor\\statamic\\cms\\src\\Stache\\Query\\Builder.php(160): array_flip(Array)
#7 D:\\Websites\\cast98x\\vendor\\statamic\\cms\\src\\Stache\\Query\\EntryQueryBuilder.php(112): Statamic\\Stache\\Query\\Builder->filterWhereIn(Object(Illuminate\\Support\\Collection), Array)
#8 D:\\Websites\\cast98x\\vendor\\statamic\\cms\\src\\Stache\\Query\\EntryQueryBuilder.php(98): Statamic\\Stache\\Query\\EntryQueryBuilder->getKeysFromCollectionsWithWhere(Object(Illuminate\\Support\\Collection), Array)
#9 D:\\Websites\\cast98x\\vendor\\laravel\\framework\\src\\Illuminate\\Collections\\Traits\\EnumeratesValues.php(822): Statamic\\Stache\\Query\\EntryQueryBuilder->Statamic\\Stache\\Query\\{closure}(Object(Illuminate\\Support\\Collection), Array, 1)
#10 D:\\Websites\\cast98x\\vendor\\statamic\\cms\\src\\Stache\\Query\\EntryQueryBuilder.php(95): Illuminate\\Support\\Collection->reduce(Object(Closure))
Environment
$ php please support:details
Environment
Application Name: Cast98
Laravel Version: 11.47.0
PHP Version: 8.3.28
Composer Version: 2.8.6
Environment: local
Debug Mode: ENABLED
URL: cast98x.test
Maintenance Mode: OFF
Timezone: America/New_York
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: NOT CACHED
Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: daily
Mail: smtp
Queue: sync
Session: file
Statamic
Addons: 1
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.70.0 PRO
Statamic Addons
duncanmcclean/guest-entries: 4.5.1
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
I upgrade to 5.70.0 and I get this error wherever I have
{{ get_content from="{ entry:id }" }}or{{ current_user:entries_fieldtype }}. My users are in Eloquent.array_flip(): Can only flip string and integer values, entry skippedHow to reproduce
Upgrade to Statamic 5.70.0 and try using
get_contentin Antlers or anentriesfieldtype within the user blueprint.Here's my
user.yamlblueprint:Here's my template:
{{ current_user:studio_subscriptions scope="stud" }} ... {{ /current_user:studio_subscriptions }}Another example, same/related issue using
get_contentHere's my
show.yamlcollection blueprint:Here's my template:
{{ cast_list }} {{ get_content:actor scope="act" }} ... {{ /get_content:actor }} {{ /cast_list }}Maybe there's better syntax for me to use, but this setup was working prior to 5.70.0. I rolled back to 5.67.0 and confirmed it went back to normal, then upgraded to 5.68 and 5.69 without issue. It blows up in 5.70.
Logs
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response