oEmbed from panel only locally?

Done. Piwik script had a upperc…anyway, its fixed. No errors in the console. But still no video.

Could you try it with the newest version (3.0.0)?

Please notice that the plugin has been renamed to embed so with the new version, the Kirbytag would also be (embed: ...)-

@distantnative
Your update came just in time for me. Unfortunately it doesn’t solve my stupid problem.

The strange thing remains: If I embed a video locally thru the panel into kirbytext and ftp the page up, it works. If I do the same thing online it doesn’t.

Strange thing is: Every video that I ever added locally, I can switch between pages online. So I can add a video from page x to a testpage in the panel into kirbytext online.

See

Isn’t that strange?

My hosting company is hosteurope.

PS: Thank you so much for troubleshooting! I hope it didn’t spoil your vacation!

So these three video are in single textarea field now, but only the two that were added locally work, right? This is interesting, and it’s not April Fools’ Day yet :thinking:

Okay, new guess: file encoding locally and on the server is different and that is why somehow a string that looks the same, but actually differs is tried to be embedded? – does that sound like it could make any sense, @texnixe?

I thought about file encoding as well, but then doesn’t that always apply to a file as a whole, not only parts of it? Maybe on a character level… So that weird invisible characters are inserted.

Maybe try to copy something from a local file into the remote Panel to see if that has the same effect (a new video that wasn’t used before).

Shouldn’t you two have stopped supporting hours ago…?
:wink:

Ok: I created a new page locally, embedded a fresh new video - worked. Then I created a page online and pasted the embed thing from the local page in (embed:https://youtu.be/0T4ym0kIPN4)

Not having luck.

I had a similar problem a while ago. I thought the problem was related to my custom folder setup in combination with (o)embed caching stuff, because sometimes the error occurred also locally.

Unfortunately I can’t reproduce it now, because in the end I used Kirbys build in youtube and vimeo methods.

Good morning from the night owl :wink: One other test: Please delete everything inside the cache and thumbs folders on the remote server and check if the videos that are working now will still work then.

Edit: As much as I would like to solve this, if you only plan to embed YouTube and Vimeo videos, you might as well use the built-in Kirby tags like @flokosiol.

Good morning night owls!

For breakfast I deleted everything from the remote site/cache folder and the videos break. Put everything back in from local: works.

Deleted everything from remote thumbs/plugins/embed: videos work but have no thumbnail image. Put everything back in from local: voilà, the thumbnails.

So we are back to what I originally thought, that the thumbs and cache folders are not writable by the webserver user.

Could you ssh into your server and have a look at the file structure with

$ ls -la

?

I would love to, but ssh-ing has always been beyond my capabilities. So, how do I do that?

PS: I am on a Mac, I know the Terminal, I copy/pasted stuff in there before and never broke anything.

You need your username for the domain, and the password:

In terminal, enter the following.

ssh domainuser@example.com

Then when prompted, enter the password (should be your FTP password). That’s all there is to it.

Just give it a cryptical name and people are afraid of it :wink:

And once you’re in, browse to the Kirby project folder and type the list command from above, make a screenshot, then browse into the site folder, do the same again, and post the results. And hopefully, we will see something that will finally help solve this problem after 3 days of dealing with it.

ok, this is the answer from …the server?

ssh_exchange_identification: read: Connection reset by peer

I just called Hosteurope and the guy said that in my package I only have re-write rules in my htaccess-thingi (Just saying)

Well, this is not very helpful, because he should have told you how to ssh into your server and that has nothing to do with the .htaccess file :rage:

Check if your hosting package includes ssh access. Which plan do you have, basic, medium, premium or supreme?

I asked the guy if the have anything against ssh-ing into their server and he said no.

I have the basic package.

The whole backend stuff at Hosteurope is so laborious.

In their backend I can change the rights. This is the stuff in the cache folder:

According to their documentation, it’s only possible with Premium or Supreme: https://www.hosteurope.de/faq/webhosting/webpack/ssh-zugang-webhosting/

So what the guy said is a little bit contradictory to their website, but maybe they’ve changed it without updating their website, you never know.

Is that the stuff that was generated by the embed plugin on the remote server, or what you put there via FTP? What are the rights on the Kirby /site/cache folder itself?

Its what comes from local.

The rights of the cache folder is 750

Could you try if it makes any difference if you set it to 777?