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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | oembed_providers-post_update_hook-3177117-2.patch | 560 bytes | chris burge |
Comments
Comment #2
chris burge commentedPatch attached.
Comment #4
chris burge commentedComment #5
chris burge commented