Some video embeds are not working
-
Hello everyone,
I have an issue with embedding Vimeo videos on my WordPress website. I suspect it might be a hosting-related issue similar to the one discussed in this thread. To isolate the issue, I have created a separate WordPress site on my hosting and a post with a Vimeo embedding. The link to the page is the following:
https://test.amirkhanov.net/2020/11/03/test/It tried to disable IPv6 support on my WordPress site by adding the following code to functions.php
add_action( 'http_api_curl', function( $curl_handle ) { curl_setopt( $curl_handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 ); });Unfortunately, this did not change the situation.
Also, I have uploaded the following code to test if my sever is blocked by YouTube or Vimeo:
<?php // Download this file to your WordPress install and name it test.php // and then access it via test.php?type=vimeo if ($_GET['type']=='vimeo') { $url = "https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/76979871"; } elseif ($_GET['type']=='youtube') { $url = 'http://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3DM3r2XDceM6A&format=json'; } else { die('Must specify type: vimeo/youtube'); } echo "<pre>"; echo "Source IP: " . file_get_contents('https://api.ipify.org') . " (where the script is being called from)\n"; print_r(get_headers($url)); ?>However, it looks that my server is not blocked.
https://test.amirkhanov.net/test.php?type=vimeo
https://test.amirkhanov.net/test.php?type=youtubeDo you know what might be the problem? I also can provide admin credentials to the website if you need them (this is a purely testing website).
- This topic was modified 5 years, 6 months ago by .
- This topic was modified 5 years, 6 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Some video embeds are not working’ is closed to new replies.