After run update.php schemadotorg cause fatal error

Created on 12 September 2024, 9 days ago

Problem/Motivation

Updating with composer cause the following error

Uncaught PHP Exception TypeError: "Drupal\schemadotorg\SchemaDotOrgSchemaTypeManager::getSetting(): Argument #1 ($settings) must be of type array, null given, called in /home/dev/website/web/modules/contrib/schemadotorg/modules/schemadotorg_additional_type/src/SchemaDotOrgAdditionalTypeManager.php on line 386" at /home/dev/website/web/modules/contrib/schemadotorg/src/SchemaDotOrgSchemaTypeManager.php line 725

Steps to reproduce

Run update.php after a composer update

Problem occur both with PHP 8.1 and PHP 8.3

Running drush updb i got this errors:
[error] str_replace(): Argument #3 ($subject) must be of type array|string, null given
[error] Update failed: schemadotorg_update_10008
[error] Update aborted by: schemadotorg_update_10008
[error] Finished performing updates.

Downgrading to 1.0.0.-alpha24 solved the problem

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇹Italy nessollo

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

Comments & Activities

Production build 0.71.5 2024