metatag_data_decode wrong type

Created on 24 June 2025, 28 days ago

Problem/Motivation

Sometimes, when using jsonapi + entity_share module we have this error

TypeError: substr(): Argument #1 ($string) must be of type string, array given in substr() (line 1012 of modules/contrib/metatag/metatag.module).

Proposed resolution

Add a test before to do nothing if it's already an array

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡«πŸ‡·France MaxPah

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024