最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Vimeo videos not working

programmeradmin0浏览0评论

We have two identical sites (one is a staging site) hosted on different servers. Both are running the same WordPress version 4.8.5.

On one of these sites Vimeo videos are failing to load (previously these were working fine at some point in the past couple weeks). This has been tested using the default unmodified Seventeen theme to rule out any theme-related issues and the problem is the same.

For example, when I insert a Vimeo video link on the faulty site it just returns the URL for the video in the page eg:

Yet on the working site, with exactly the same page content the video URL above is automatically replaced with the Vimeo video player.

Screenshot from faulty site:

Screenshot from working site:

For testing we tried a Youtube video and this is displayed fine on the faulty site.

How can I troubleshoot this and work out what is causing the problem?

We have two identical sites (one is a staging site) hosted on different servers. Both are running the same WordPress version 4.8.5.

On one of these sites Vimeo videos are failing to load (previously these were working fine at some point in the past couple weeks). This has been tested using the default unmodified Seventeen theme to rule out any theme-related issues and the problem is the same.

For example, when I insert a Vimeo video link on the faulty site it just returns the URL for the video in the page eg:

https://vimeo/44633289

Yet on the working site, with exactly the same page content the video URL above is automatically replaced with the Vimeo video player.

Screenshot from faulty site:

Screenshot from working site:

For testing we tried a Youtube video and this is displayed fine on the faulty site.

How can I troubleshoot this and work out what is causing the problem?

Share Improve this question edited Feb 20, 2018 at 15:32 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Feb 20, 2018 at 15:27 ChrisChris 1611 silver badge5 bronze badges 2
  • I am experiencing the same issue - were you able to fix this? – Emma Lewis Commented Feb 22, 2018 at 13:06
  • We identified the underlying cause of this - I am about to post the solution as an answer to this question. – Chris Commented Feb 22, 2018 at 13:07
Add a comment  | 

2 Answers 2

Reset to default 4

After further investigation this appears to be Vimeo blocking the requests.

We have two sites (one where Vimeo videos work and one where they don't). When testing the retrieval of content via PHP we get "HTTP request failed! HTTP/1.1 403 Forbidden" on the faulty site.

Anyone else reading this thread can run the same test with this script:

https://pastebin/szRfKbRv

This will identify if Vimeo is blocked on your hosting server - if it is you should contact your hosting provider and/or Vimeo to get the IP block removed.

Not a WordPress problem per se, but hopefully this diagnostic test helps someone else in the future.

put file_get_contents

$url = file_get_contents(
            "https://vimeo/api/oembed.json?url=https%3A//vimeo/76979871");

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论