Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
While trying to add video using the standard video widget by SO, i get the following error
Sorry, we can’t load the video at the supplied URL. Please check that the URL is for a supported video file (.mp4, .m4v, .webm, .ogv, .flv) or stream (e.g. YouTube and Vimeo).
For Devs
GET http://domain/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeQl6Do8f9fw&discover=false 404 (Not Found)
Uncaught Error: Syntax error, unrecognized expression: {"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}
Now i have tried enabling and disabling plugins, the issue exists.
Though with the same copy on my local, it doesn’t bring up this issue.
What could the possible problems be?
Hi Ali,
I’m not too sure why this is happening – we don’t actually use the WP Rest API with this widget. Hm. Are you using the Video Player widget or the SiteOrigin Video Player widget? The former is actually a standard WordPress widget.
I found out it was a plugin blocking the oEmbed for videos :'(
Hi Ali,
I’m glad to hear you were able to get it working. Out genuine of interest, can you please clarify what plugin was blocking it? I’m sorry I wasn’t able to be of assistance this time. Please be sure to post another thread if you have any other questions.
It was WP Rocket, It has an option in the backend when checked it blocks oEmbed requests on the frontend and disabled wp js that calls their video functions. Doing so also disabled embeding of twitter feed etc