Error on uninstall: null given in array_search(

Created on 12 February 2025, 2 months ago

Problem/Motivation

On drush uninstall, I get the following error

 [warning] Undefined array key "module" svg_image.install:30
 [error]  TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given in array_search() (line 30 of /var/www/html/docroot/modules/contrib/svg_image/svg_image.install) #0 /var/www/html/docroot/modules/contrib/svg_image/svg_image.install(30): array_search()

Steps to reproduce

Uninstall module

Proposed resolution

Add a check for an array before running the array_search

Remaining tasks

I see there are a few uninstallation issues in the queue, so this might need to be considered along with those issues.

πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States capysara

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