Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Admin UI #53

Open
BernhardSchlegel opened this issue Feb 27, 2020 · 7 comments
Open

Error in Admin UI #53

BernhardSchlegel opened this issue Feb 27, 2020 · 7 comments

Comments

@BernhardSchlegel
Copy link
Contributor

Hey guys,

I get an GRAV.FORM.VALIDATION_FAIL grecaptcha_callback is not defined in blueprints error right after installing and clicking save for the first time. What am I doing wrong?

recaptcha: v.2.1.2.
Grav v1.6.21
Admin v1.9.12

Thanks!

@LadislavCmel
Copy link

Hello,
I have the same problem, did you found any solution?
Thanks.

@BernhardSchlegel
Copy link
Contributor Author

Nope, not yet.

@Karmalakas
Copy link

With plugin enabled, when I go to single page (eg. Home) editing, I get this:

Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Cannot load blueprint blueprints://flex-objects/pages.yaml: Failed to read [LOCAL_PATH]/user/plugins/recaptchacontact/blueprints/default.yaml: Non-string keys are not supported. Quote your evaluable mapping keys instead at line 26 (near "false: PLUGIN_ADMIN.DISABLED").").

Previous exceptions
Cannot load blueprint blueprints://flex-objects/pages.yaml: Failed to read [LOCAL_PATH]/user/plugins/recaptchacontact/blueprints/default.yaml: Non-string keys are not supported. Quote your evaluable mapping keys instead at line 26 (near "false: PLUGIN_ADMIN.DISABLED"). (500)
Failed to read [LOCAL_PATH]/user/plugins/recaptchacontact/blueprints/default.yaml: Non-string keys are not supported. Quote your evaluable mapping keys instead at line 26 (near "false: PLUGIN_ADMIN.DISABLED"). (500)
Non-string keys are not supported. Quote your evaluable mapping keys instead at line 26 (near "false: PLUGIN_ADMIN.DISABLED"). (0)

Replaced paths with [LOCAL_PATH]

@quorumini
Copy link

Old thread, but since no one answered. I changed this in [LOCAL_PATH]/user/plugins/recaptchacontact/blueprints/default.yaml

              options:
                0: PLUGIN_ADMIN.DISABLED
                1: PLUGIN_ADMIN.ENABLED

Before that under options it was:

              options:
                false: PLUGIN_ADMIN.DISABLED
                true: PLUGIN_ADMIN.ENABLED

@vm75
Copy link

vm75 commented Sep 2, 2021

@quorumini, your fix works. Please create a pull request

@mzryz
Copy link

mzryz commented Apr 2, 2022

Could someone please integrate this fix? It has been an entire year already.

@rexxmagnus
Copy link

I'd like to point out that recaptcha is now built into the core forms plugin (at least as of v7.2.1) and an example is in the documentation here https://learn.getgrav.org/16/forms/forms/example-form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants