- Issue created by @smustgrave
- 🇬🇧United Kingdom catch
Per the other issue, we need clear steps to reproduce here.
- 🇮🇳India mdsohaib4242
This error occurs when Drupal is unable to correctly load a theme extension due to a missing or misconfigured theme. It seems that when you switch between branches, the system might be losing track of the theme information, causing the addTheme() method to receive a null value instead of a valid theme object.
Since Drush is stuck try to delete the cache tables directly from the database
DELETE FROM cache; DELETE FROM cache_config; DELETE FROM cache_data;
If the theme was added via the drupal_themes table, ensure that the theme is still registered in the system after switching branches. You can manually add the theme or clear its configuration from the database or rebuild the theme registry manually.
drush config:import
- 🇳🇿New Zealand quietone
A few additions to the issue summary and this should have a title update before a commit. The title is current the same as the originating issue.