-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin stopped working at Strato #21
Comments
Update: |
If I get this right, with 1.1.2 and Kirby 4.1.1 it is working locally on a starterkit but not remotely? Does the console log anything when the Sync failed message shows? |
(the warnings on your 2nd screenshot are caused by Vimeo's iframe, so nothing to do with the plugin itself) |
thanks already for taking the time... |
If i do it on my other testsite where everything works, i get this result:
Here is the video shown
|
There's something Vimeo doesn't like about your server then. Can you run this somewhere: $oembed_endpoint = 'http://vimeo.com/api/oembed';
$url = $oembed_endpoint . '.json?url=' . rawurlencode('https://vimeo.com/224201603') . '&width=640';
$embed = json_decode(curl_get($url));
dump($embed);
function curl_get($url) {
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
$return = curl_exec($curl);
curl_close($curl);
return $return;
} What does it dump? |
It dumps this very concerning message:
|
The strange thing is, that all the previously embedded videos are working.... |
I'm getting in touch with vimeo about this. Seems that this is not really an issue with the plugin itself. Thanks again for taking the time... |
The hosting is shared, right? Then another site probably made way too many requests to the Vimeo API and Vimeo implemented a (hopefully) 24 hour ban on the IP, which you share. Unfortunately nothing this plugin can do about it, you'd have to either try again tomorrow to check if the ban has been lifted or get in touch with Vimeo. The already-stored videos aren't affected, only new API calls. |
Vimeo got back to us:
Looks like we got part of a different problem. freaky... |
Dear Sylvain,
i have used your very helpful plugin for a website that is hosted on Strato (https://www.strato.de) and for reasons i cannot comprehend, it stopped working. I can paste a vimeo Url into the field, but nothing happens and if save the page then, the embed-field disappears after reloading the panel page.
Since this came to light while updating the kirby version from 3.9.8.1 to 4.1.1 i was wondering if that would be the issue, but i have not being able to make the plugin work with older kirby versions.
I tested the setup (kirby starterkit with the embed plugin) on my own server (Hetzner) and it worked fine with kirby 3.9 and 4.1.1. So the reason seems to be located in a difference between the 2 hoster.
The only real difference and infos that i have are these:
php versions: Hetzner (working): 8.2.16 / Strato (not working) 8.2.15
If i use on Strato kirby v4.1.1 there is no error message when i paste a vimeo URL (for example: https://vimeo.com/224201603) and nothing changes. If i save the page then and reload, the Embed field is gone.
If i use kirby 3.9.8.1 i get an error while pasting the Url: this.isValidUrl is not a function
Other than that, i am pretty unsure what causes the problem... Have you heard anything about this?
I would be happy to use the plugin on the website :)
Greetings,
Matthias
The text was updated successfully, but these errors were encountered: