YOUTUBE PROBLEMS IN DRUPAL 8

For those of you who are using the media module, you may be getting this error that does not allow you to place a youtube video on the website.

The provided URL does not represent a valid oEmbed resource.

The solution is in this blog. You have to open the settings.php file and put the line:

$settings['http_client_config']['force_ip_resolve'] = 'v4';

Need a Drupal Expert?

Senior Drupal developer, freelance, specialized in what's hardest: migrations, multilingual sites, SaaS platforms and Stripe integration. I leverage AI to cut delivery times and costs, with expert review on every line of code.

No agency, no middlemen. Direct contact with the one who does the work.