- Issue created by @marcoka
When visiting a node or page the site never loads, and times out. At first i thought it is the Metatag module, but it is not.
When i deinstalled schema.org, everything works fine again.
Reinstalling it and i have the same problems again.
Mon Nov 20 14:29:40.710693 2023] [php:notice] [pid 6912] [client 127.0.0.1:59434] Uncaught PHP Exception ArgumentCountError: "Too few arguments to function Drupal\\metatag\\MetatagManager::__construct(), 9 passed in /srv/http/WORKSPACE_DRUPAL/EIGENE_PROJEKTE/PRODUCT_DISTRI_D12/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 10 expected" at /srv/http/WORKSPACE_DRUPAL/EIGENE_PROJEKTE/PRODUCT_DISTRI_D12/web/modules/contrib/metatag/src/MetatagManager.php line 131
[Mon Nov 20 14:29:43.728975 2023] [php:notice] [pid 6952] [client 127.0.0.1:59450] Uncaught PHP Exception ArgumentCountError: "Too few arguments to function Drupal\\metatag\\MetatagManager::__construct(), 9 passed in /srv/http/WORKSPACE_DRUPAL/EIGENE_PROJEKTE/PRODUCT_DISTRI_D12/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 10 expected" at /srv/http/WORKSPACE_DRUPAL/EIGENE_PROJEKTE/PRODUCT_DISTRI_D12/web/modules/contrib/metatag/src/MetatagManager.php line 131
Related issue: 🐛 Fatal Error - too few arguments MetatagManager Postponed: needs info
Edit: It seems it only happens on pages that use the "Schema.org Product" Submodule
Have old version installed and upgraded mettag and schmea.org using
"composer require drupal/metatag:^2 drupal/schema_metatag:^3"
It seems it is caused by the REVIEWRATING data. If i disable that everything works again.
Active
3.0
Code