Updatedb fails on taxonomy_update_10100

Created on 3 December 2024, 19 days ago

Problem/Motivation

I have been running drupal 10.3.10 on PopOs (an Ubuntu derivative) with a localhost Apache server for some time now.
Recently when performing a database-update (after updating modules), it fails with this message:
> [notice] Update started: taxonomy_update_10100
> [error] Call to a member function get() on null
> [error] Update failed: taxonomy_update_10100

Steps to reproduce

composer update
followed by either
drush updatedb
or
run the database update through the website admin pages

PHP is not my strong-point, but when trying to run drush through a debugger I think the update fails at web/core/modules/taxonomy/taxonomy.install line 26 because line 25 does not return a value into $definition when looking for getEntityType('taxonomy_term')

The source for the failing function is given here:
https://api.drupal.org/api/drupal/core%21modules%21taxonomy%21taxonomy.i...

I am aware of this issue:
https://www.drupal.org/forum/support/upgrading-drupal/2024-08-26/databas...
But I'm not upgrading from v9, and I've not (knowingly) done anything with composer Groups so can't tell how it might apply here.
Have I missed installing another module / core option? How would I go about doing it while I have 15 other database updates pending? Any help would be appreciated.

Output from "drush status":

Drupal version   : 10.3.10                                                   
Site URI         : http://default                                            
DB driver        : pgsql                                                     
DB hostname      : localhost                                                 
DB port          : 5432                                                      
DB username      : xxxx                                                    
DB name          : drupal_sim                                        
Database         : Connected                                                 
Drupal bootstrap : Successful                                                
Default theme    : custom_barrio_sim                                         
Admin theme      : claro                                                     
PHP binary       : /usr/bin/php8.1                                           
PHP config       : /etc/php/8.1/cli/php.ini                                  
PHP OS           : Linux                                                     
PHP version      : 8.1.2-1ubuntu2.19                                         
Drush script     : /drupal_base_dir/vendor/drush/drush/drush     
Drush version    : 12.5.3.0                                                  
Drush temp       : /tmp                                                      
Drush configs    : /drupal_base_dir/vendor/drush/drush/drush.yml 
Install profile  : minimal                                                   
Drupal root      : /drupal_base_dir/web                          
Site path        : sites/default                                             
Files, Public    : sites/default/files                                       
Files, Private   : /external_drupal_dir/private_files/                      
Files, Temp      : /tmp
💬 Support request
Status

Active

Version

10.3

Component

taxonomy.module

Created by

🇬🇧United Kingdom wh

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

Comments & Activities

Production build 0.71.5 2024