When loading the configuration page (/admin/config) with both oembed_providers and web_profiler installed, it errors with the following message:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 2 passed to Drupal\oembed_providers\OEmbed\ProviderRepositoryDecorator::__construct() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /var/www/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 289 in Drupal\oembed_providers\OEmbed\ProviderRepositoryDecorator->__construct() (line 93 of modules/contrib/oembed_providers/src/OEmbed/ProviderRepositoryDecorator.php).

This is due to a few functions type hinting with the default implementations, not their respective interfaces.

Comments

s.abbott created an issue. See original summary.

s.abbott’s picture

Here is a proposed fix.

chris burge’s picture

Status: Active » Needs review

chris burge’s picture

Status: Needs review » Fixed

Thanks for documenting this issue and submitting a patch

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.