ReCaptcha Error for site owner: Invalid key type

Hi,

On /submit/, the reCAPTCHA has error “ERROR for site owner: Invalid key type”.

I followed the "Setting up Google Recaptcha"support documentation, but no luck.

When I inspect /submit/, I see a sitekey that doesn’t match the one I added at /livewhale/core/config.php

site: https://calendar.tulsacc.edu/

Thank you,
Melissa Cloud

Hey Melissa,

Sure thing – often you may need to logout and login to LW after editing /core/config.php (or any PHP config file) to have LiveWhale refresh its cache. All PHP config files get cached and checked for syntax errors, so if that doesn’t do the trick, it may be that a PHP syntax error got accidentally introduced while editing the file. If you try logout/login, does that make a difference?

Karl

Hi Karl,

I don’t think Logout/Login to LW didn’t the trick.


In file main.html does it matter if the “Submit an Event” button goes to /submit/ or /submit/index.php

i.e.,
<a href="/submit/" class="button">Submit an Event</a>
vs
<a href="/submit/index.php" class="button">Submit an Event</a>


When logged out of LiveWhale via SSO and I visit these URLs I get the following:

https://calendar.tulsacc.edu/submit/

https://calendar.tulsacc.edu/submit/index.php


The reason I ask is because in the file at /livewhale/client/modules/secure_submissions/public.application.secure_submissions.php I see it checks if the current page being loaded is /submit/index.php.

Aha, if the default captcha is showing up (the 1+1) it likely means it needs to be commented out of livewhale/client/public.config.php (there’s a PUBLIC_QUESTION and PUBLIC_ANSWER there that can override recaptcha in certain cases or be used in stead, but we generally comment those out when setting up ReCaptcha). If that doesn’t do the trick, this does sound like a misconfig from the initial setup, I bet our team would be able to help via the Help Request Form if you shoot them a note there.

Hi Karl,

The question/answer is already commented out, as outlined in step 3 in the"Setting up Google Recaptcha" support documentation.

Yesterday I thought this was a cache or load balancer issue because when I visited https://calendar.tulsacc.edu/submit/ I get the ReCAPTCHA and when I visited https://calendar.tulsacc.edu/submit/index.php I get the Question/Answer.

I’ll submit a help request form to look into if there is a misconfig, thanks.

Thanks Melissa, that sounds good. It sounds like you’re doing everything right, so it must be something else going on, our team can help investigate.