kirby-editor-gallery-block icon indicating copy to clipboard operation
kirby-editor-gallery-block copied to clipboard

Error with loader.png

Open mynameisfreedom opened this issue 4 years ago • 4 comments

Hi @cajames !

I am experiencing an error with loader.png

loader-error

Can you reproduce the issue?

mynameisfreedom avatar Aug 08 '20 18:08 mynameisfreedom

Hey @mynameisfreedom! Oh, that's interesting. Though I haven't released any updates and it used to work before right?

Did you upgrade your version of Kirby or the Editor? What version are you using?

I just tested it on Kirby 3.3.6, with the editor (probably not the latest version), and it seem to work fine.

cajames avatar Aug 09 '20 00:08 cajames

I've also just tested it on the latest Kirby 3.4.2, with the latest Editor 1.0.4, and it seems to work fine. Could you please let me know what versions you're using?

cajames avatar Aug 09 '20 00:08 cajames

Hi, @cajames sorry for the delay.

It is happening from the beginning, I just didn't see it though. I am using all the latest versions, and Kirby, and your Gallery block.

But, as you can see from the screenshot, issue happens when Kirby website installation is in the subfolder.

Add install to the subfolder and test.

mynameisfreedom avatar Aug 16 '20 09:08 mynameisfreedom

I had the same problem. For compatibility reasons I had to change the Kirby folder from "media" to "resources". No problem with Kirby and Kirby Editor.

The image "loader.png" is not found under /media/plugins/... @mynameisfreedom: you use a sub folder. the file is under /zero-one/media/plugin/...

https://github.com/cajames/kirby-editor-gallery-block/blob/ef56d8695a1f66765d0d9142db075dde6368a024/src/components/Gallery.vue#L51

My simple solution https://github.com/zufallswerk/kirby-gallery/commit/22f0d652d592a43b8651ab872aca3b545f3c9c6c was to change the URL in the plugin. But this is not a good solution. But I have no other one at the moment.

zufallswerk avatar Sep 12 '20 16:09 zufallswerk