Sommerregen / grav-plugin-mediaembed

This plugin embeds several media sites (e.g. YouTube, Vimeo, Soundcloud) by only providing the URL to the medium.
Other
24 stars 8 forks source link

Plugin install via Admin Panel seems to crash #17

Open paulhibbitts opened 8 years ago

paulhibbitts commented 8 years ago

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

Sommerregen commented 8 years ago

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.

paulhibbitts commented 8 years ago

Thanks so much for taking a look into it Benny!

tdulieu commented 8 years ago

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

ghost commented 7 years ago

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