Uninstall Error when block was installed to sub theme

Created on 14 November 2023, 10 months ago
Updated 16 November 2023, 10 months ago

Problem/Motivation

When we Uninstall this module, having previously installed the module on a site that is using a sub theme, we get an Error saying that it can't find the block being referred to.

Error
Warning: Undefined variable $block in sector_social_share_install() (line 24 of /var/www/html/web/modules/contrib/sector_social_share/sector_social_share.install)

Proposed resolution

Update module uninstall to find the current block in the active theme's block placements and remove it.

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΏπŸ‡¦South Africa stewest Cape Town

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

Comments & Activities

Production build 0.71.5 2024