Vimeo videos not working

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:

enter image description here

Screenshot from working site:

enter image description here

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?

2 Answers
2

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.com/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.

Leave a Comment