Undefined array key 2 LibraryStream.php:36 when executing drush image:flush --all command

Created on 5 December 2023, 12 months ago
Updated 9 December 2023, 12 months ago

Problem/Motivation

When I am running drush image:flush --all. We are receiving below errors;

[warning] Undefined array key 2 LibraryStream.php:36
[warning] The following theme is missing from the file system: styles ExtensionPathResolver.php:63
[warning] The following theme is missing from the file system: styles ExtensionPathResolver.php:63
[warning] Array to string conversion LocalStream.php:122

I found web/modules/contrib/patternkit/src/StreamWrapper/LibraryStream.php file is causing this warning message. This below line of code is expecting the $uri should contain minimum two "/" however it received one "/" for which it's triggering these warning messages.

[$extension, $library, $type_level] = explode('/', $uri);

Steps to reproduce

Run drush image:flush --all in your Drupal setup

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

9.1

Component

Module Core

Created by

🇮🇳India pravat231

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

Comments & Activities

Production build 0.71.5 2024