Fatal Error - too few arguments MetatagManager

Created on 22 November 2023, about 1 year ago
Updated 27 November 2023, about 1 year ago

Problem/Motivation

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

Steps to reproduce

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.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇩🇪Germany marcoka

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

Comments & Activities

Production build 0.71.5 2024