Problem/Motivation

In #3177117: Provide hook_oembed_providers_alter(), the service/constructor for ProviderRepositoryDecorator was changed. This requires a cache clear; otherwise, the following error will be encountered:

PHP message: ArgumentCountError: Too few arguments to function Drupal\oembed_providers\OEmbed\ProviderRepositoryDecorator::__construct(), 6 passed in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 289 and at least 7 expected in /var/www/html/web/modules/contrib/oembed_providers/src/OEmbed/ProviderRepositoryDecorator.php on line 102

Steps to reproduce

Update from 1.0.3 to 1.1.0 without clearing the cache.

Proposed resolution

Add a hook_post_update_NAME() function.

Remaining tasks

  • Submit patch

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

Chris Burge created an issue. See original summary.

chris burge’s picture

Status: Active » Needs review
StatusFileSize
new560 bytes

Patch attached.

  • Chris Burge committed f917d65 on 1.1.x
    Issue #3178044 by Chris Burge: Add hook_post_update_NAME() due to change...
chris burge’s picture

Status: Needs review » Fixed
chris burge’s picture

Assigned: chris burge » Unassigned

Status: Fixed » Closed (fixed)

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