Error when open Layout page after update to Drupal 10.5.3

Created on 1 October 2025, 24 days ago

After creating content by Event (Layout builder) content type with selected Location field, I have an error:

Error: Object of class Drupal\Core\TypedData\Plugin\DataType\IntegerData could not be converted to string in Drupal\Core\Entity\EntityStorageBase->buildCacheId()

It happened because this line returns an array instead of a string (ws_events.tokens.inc:83)
$location_id = $node->get('field_location_reference')->first()?->get('target_id')

Need to change it to this string to fix the issue
$location_id = $node->get('field_location_reference')->first()?->get('target_id')->getValue()

πŸ› Bug report
Status

Needs work

Version

1.5

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Znak

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024