sylvainjule / kirby-embed

Embed field for Kirby 3 and 4.
74 stars 3 forks source link

Sync failed #3

Closed plagasul closed 4 years ago

plagasul commented 4 years ago

I am getting a sync failed red message on the field when trying to fetch from the url I provide to it.

Any particular reason this may be happening ?

Thank you

sylvainjule commented 4 years ago

I'll need more informations for this.

Local or remote server? VPS or shared hosting? Anything in the console / error message in your Network tab? Does it fail for all services or only specific ones?

plagasul commented 4 years ago

Local server

At least both youtube and vimeo.

This on console: image

Is this permission related? hmm Thank you

plagasul commented 4 years ago

The plugin folder, as downloaded, is called kirby-embed-master , does that matter? (does not seem so)

Thank you

sylvainjule commented 4 years ago

No, the issue is with your server config. As stated in the error message, the class DOMDocument is missing from your PHP setup. It is used by the library to parse the response.

Google the message Class 'DOMDocument' not found to browse possible fixes. Here's one, for example

plagasul commented 4 years ago

That solved it, thank you

antoine3000 commented 2 years ago

Hi,

I also get a sync failed error when adding a Soundcloud link.

Here is the message printed in the console:

[HTTP/1.1 400 Bad Request 563ms]
Object { status: "error", error: "strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated" }

Any idea what to do? thanks!

tristantbg commented 2 years ago

This release should fix it : https://github.com/sylvainjule/kirby-embed/releases/tag/1.0.5

antoine3000 commented 2 years ago

hey! Thanks for the update. Unfortunately, I still get the error:

Object { status: "error", error: "strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated" }
tmmmmm commented 1 year ago

See #18 / last post: Same error on nginx, works on Apache.