Sommerregen / grav-plugin-mediaembed

This plugin embeds several media sites (e.g. YouTube, Vimeo, Soundcloud) by only providing the URL to the medium.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin install via Admin Panel seems to crash

paulhibbitts opened this issue · comments

I am running the most recent stable release of Grav, and when I try to install MediaEmbed via the Admin Panel I get this Twig error:

Twig_Error_Runtime
An exception has been thrown during the rendering of a template ("Array to string conversion") in "forms/fields/toggle/toggle.html.twig" at line 46.

Happy to test any possible fixes, etc.

Thanks very much,
Paul

Hi @paulhibbitts,

that seems to be related with #13 . However I don't understand, what is actually going on. Currently I'm on my way to set up a machine with the latest Grav + Admin to test it.

Thanks so much for taking a look into it Benny!

Hi @Sommerregen and @paulhibbitts

This issue seems to be related to the way services are named in blueprints.yaml. For example services.SoundCloud crashes the Admin panel, but services.soundcloud doesn't. For some reason uppercase letters should be totally avoided.

Changing all services names to lowercase in blueprints.yaml fixed the bug for me on Grav 1.1.1 + Admin 1.1.2

I also ran into this issue today. Grav v1.1.8 Admin v1.2.4 and tried to install MediaEmbed v1.2.0. I also posted this in the Grav forum