Closed ghost closed 8 years ago
Hello @umbergerba I have no idea at all. I'm not using any forms. And unfortunately I neither can reproduce your issue or see from the error page, that this is due to this plugin here. Can you attach the full error page here (at least the left side or something that identifies, that it is really coming from the MediaEmbed plugin)? And if so, I guess this is an Adim plugin issue, since it reads the plugins blueprints.yaml
and process the forms. I really can't do anything, here...
Maybe someone other can confirm this issue or help me sorting out the bug.
I get the same error on two different GRAV sites. Here is the left-hand side of the error page ...
Hope that helps ... let me know if there is anymore more you might need.
Brian U.
Hi @umbergerba ,
well from this error stack I unfortunately can't locate the bug. I was hoping that at least something is poitning to the MediaEmbed plugin... Well, you may try to change one variable in the hope that helps. To do this, can you change blueprints.yaml (L15) to
validation: loose
and see whether this solves your problem?
No change.
Ok, I guess this is really an Admin panel issue. But before I'm completely sure, can you cross-check the following change? I assume you have Admin panel v0.3.0 installed. If not please update it to this release. Then navigate to the file themes/grav/templates/forms/fields/toggle/toggle.html.twig
and at line 31 change it to
{% if key == value %}checked="checked" {% endif %}
Please let me know, whether this helps.
Yes, that seems to have worked. I now have access to the plugin settings under Admin Panel. It also seems to install correctly too.
Great! I will open an issue on the Grav Admin plugin tracker as soon as I'm sure this issue persists in the latest version. Thus, I will close this now. Feel free to open it again.
Happening for me. I believe it is due to the media embed plugin
@sheldonkotyk Can you clarify your thought? Initially this issue was due to a bug in the Grav Admin Plugin, how blueprints are rendered. To be honest this plugin is quite old and blueprint support for admin panel is very limited (since I don't know how to wrap it up in a simple way). If you have any questions, I'm happy to hear :smile:.
OK, I wasn't experiencing the issue until I installed the media embed plugin. I've since disabled it as I was having other issues that made it more difficult than just embedding an iframe.
If you want to debug with me I can try again or we can leave it.
I'm also able to replicate this on a fresh install on a digital ocean droplet. It only appears to occur with the MediaEmbed plugin. The exception isn't thrown against any other plugin that I have installed.
You get the following error page upon install or if you try to access the plugin through the new Admin Panel.
An exception has been thrown during the rendering of a template ("Array to string conversion") in "forms/fields/toggle/toggle.html.twig" at line 31. (see attachment below)
I've used a clean GRAV site with no adjustment at all.
Suggestions?