Upgrading D8 project - Oembed media throws exception

Created on 17 October 2023, 8 months ago

Steps to reproduce

Upgrading a D8 project with media installed to 9.5, I tried to use core oembed video capabilities.
The configuration in media.settings.yml did not get updated though:
lacking both keys

oembed_providers_url: "https://oembed.com/providers.json"
standalone_url: false

This throws an exception when trying to create a media with an oembed video.
I fixed it by manually pasting the keys from the config/install directory into my configuration.

Proposed resolution

I guess this should be automated when upgrading

πŸ› Bug report
Status

Closed: cannot reproduce

Version

9.5

Component
MediaΒ  β†’

Last updated 1 day ago

Created by

πŸ‡«πŸ‡·France Thony

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

Comments & Activities

  • Issue created by @Thony
  • πŸ‡«πŸ‡·France Thony
  • Status changed to Postponed: needs info 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    Please for a bug report we need to understand how you upgraded and the exception message in detail. Those configurations have been part of Drupal since at least 8.1.0 and are part of the module's configuration schema.

  • πŸ‡«πŸ‡·France Thony

    Yes I guessed so ... but did not think to save enough information when I was investigating...
    What I can tell you is that I come from a project in D 8.9 upgraded to 9.5, and that the error triggered at guzzle level trying to GET the empty url from oembed_providers_url (after a call to Drupal\media\OEmbed\UrlResolver line 133:

        foreach ($this->providers->getAll() as $provider_info) {
    

    If this is not reproducible from a vanilla 8.9 I guess this is specific to my project and the ticket can be closed...
    Thanks anyway !

  • Status changed to Closed: cannot reproduce 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen
Production build 0.69.0 2024