- Issue created by @stewest
- Status changed to Fixed
10 months ago 1:33am 16 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.
For sites that started early on Sector 10, didn't have sector_custom_blocks / sector_notice installed. The latest Alpha-8 has an update hook which is looking for a sector_notice field. As older sites won't have this the module doesn't uninstall gracefully.
If you site is on Sector alpha-5 and your upgrade to Sector alpha-8 with `composer update drupal/sector -W` then you try to run drush updb, you may get an error:
InvalidArgumentException: Field field_notice_level is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 583 of core/lib/Drupal/Core/Entity/ContentEntityBase.php).
field_notice_level is a part of sector_notice
Then one would need to uninstall Sector Custom Blocks › Notice
Disabling the module, I get *Error*: Call to a member function delete() on null in *sector_notice_uninstall()* (line *35* of *profiles/contrib/sector/modules/sector_custom_blocks/modules/sector_notice/sector_notice.install*).
https://git.drupalcode.org/project/sector/-/blob/10.0.x/modules/sector_c... needs to be wrapped in an if ($block_content)
Fixed
10.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.