Argument #2 ($haystack) must be of type array, string given in array_search

Created on 7 September 2023, almost 2 years ago
Updated 13 September 2024, 9 months ago

Problem/Motivation

TypeError: array_search(): Argument #2 ($haystack) must be of type array, string given in array_search() (line 905 of /app/docroot/core/themes/claro/claro.theme)

Steps to reproduce

Don't know the exact steps to reproduce, I see the issue when using paragraphs.

Proposed resolution

Use defensive coding to check if $variables['attributes']['class'] is array

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: cannot reproduce

Version

11.0 🔥

Component
Claro 

Last updated 1 day ago

Created by

🇮🇳India ameymudras

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

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