Forums

Recaptcha error on previously working forms

kenmcmahon 15 May, 2019
All of a sudden, and for no apparent reason two forms that were previously working fine on my site are generating the The reCAPTCHA wasn't entered correctly. Please try it again. error message. I've added a debugger and this is what I get:
Array
(
    [chronoform] => feedback
    [event] => submit
    [Date] => 
    [Title] => Mr
    [FirstName] => Ken
    [Surname] => McMahon
    [Department] => 
    [TeamMember] => 
    [Source] => 
    [NoReason] => 
    [Improvement] => 
    [email] => 07976433223
    [g-recaptcha-response] => 03AOLTBLSZHfwO33PRdq0YWZYlM1rKWUMS_cTSj3ti881x_Psw75BdJXlFFBth5OzJGot5BN3jgscHNIQ5-EpvW5bSh-pa1U953D4cwVJR7ZUbXa3ERdynRH64_-ryZFfA466v_eJUrIgK7lqNTdaCYFQORSlo48JZH-gaMZyCysRdgd_NQAF74T0XnujA1EqnPHVgSP5H74WbFIBJm7o1aW7qegbEGjgslcZLRlfqmVGPcs9C9tXkA695WUkEIq5-8MaORrSdldmMOs1o2q5JHWBY90epu_nuniY7jvbca7UEnTCYWYvRki7X940NPylup6guFO3Vk1Cb
    [Submit] => Submit
)
Any ideas what might be causing this?
Thanks
Ken
healyhatman 15 May, 2019
I don't see on there the debug output from the recaptcha check? Also if you have a separate recaptcha check action, make sure you have the automatic check disabled under the form settings.
kenmcmahon 16 May, 2019
Thanks for the suggestions. That's the only populated field in the debug report - all the others are empty. I'm using Load Google noCaptcha and Check Google NoCaptcha. No automatic check on that. Also, as I said, it was all working fine before, for several months, and nothing has changed.

Ken
healyhatman 16 May, 2019
So you haven't updated Chronoforms? Because there are new automatic checks. You may need to convert your form to the 6.1 version
GreyHead 16 May, 2019
Hi Ken,

Clearly something has changed . . . please post a link to one of the forms so that we can take a quick look.

Bob
kenmcmahon 16 May, 2019
Hi Bob. Agreed!
The form is here https://www.penderlaw.co.uk/where-we-are/contact-us/

Ken
healyhatman 16 May, 2019
"Page not found" (EDIT never mind there was an extra space in the URL bar for some reason)
kenmcmahon 16 May, 2019
Only thing I can think of that has changed is PHP version updated from 5.6 to 7.2. But that seems an unlikely culprit. Would really appreciate some help to try and get this sorted before the weekend.
Ken
kenmcmahon 16 May, 2019
@healyhatman I'm on v5.0.17 which according to the website is the most recent version. Running on WP5.2
Ken
kenmcmahon 16 May, 2019
ok, now I'm really at a loss.
I decided to edit the form to substitute the nocaptchas with recaptchas to see if that made a difference. I ended up having to delete all the existing setup to start again. Then when I added new objects in the setup tab they weren't saving. now all I can see in the setup is a blank page. No buttons, nothing. (see grab)
I've been messing around with this for over an hour and now I have no form at all, as opposed to one that's not working.
Some help would be very welcome.
Thanks
Ken

healyhatman 17 May, 2019
Didn't realise you were on the old v5 sorry, Bob is the only one that can help you with that. All I can suggest is that you reinstall CF in case something got corrupted
GreyHead 17 May, 2019
Hi Ken,

I just checked the Contact form you linked to and it seems to have submitted correctly (as far as I can tell from the front end. The data submitted is below and I got the Form successfully submitted! message afterwards.

Bob

Name: Bob+Testing
Telephone: 01234445556
Email: example%40example.com
Enquiry: Testing
media: Other+%28please+specify%29
g-recaptcha-response: 03AOLTBL . . .
Submit: Submit
kenmcmahon 17 May, 2019
Hi Bob,
Thanks for checking. Yes the form is working, I managed to track down the problem late last night, but was too tired to post and this is the first chance I've had today. In case anyone has siimilar problems the issue was with the PHP update. allow_url_fopen was disabled on the new version, once I enabled it all was fine.

I still have the problem with the second form. If I'd just left it alone all would be fine, but I've deleted everything in the setup tab and now when I try to add it back nothing saves. So it currently looks like this:

And if I drag, say, an HTML (Render Form) element to the On load section, then click save, it says 'saved successfully' at the top of the screen and returns me to the General tab, then when I go back to the Setup tab it's blank again.
Also, I've restored the entire site, including the database, but still no form, which is perplexing.
Anyhow, if anyone can help me get to the bottom of this I'd really appreciate it.
Ken
kenmcmahon 17 May, 2019
So I managed to edit the form by backing up and restoring what I had to another WP site, Editing it, then backing it up and restoring to the original site. Not ideal, but it gets me out of the hole I was in for now.
Another thing happens when I try and edit, which is that on saving I sometimes get a white screen with the message 'The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.' I never got this prior to updating to WP 5.2.
Ken
kenmcmahon 20 May, 2019
Here's an update on the WP 5.2 error this from the email that gets sent every time I try and edit the form

Error Details=============An error of type E_ERROR was caused in line 1 of the file /home/penderlawco/public_html/wp-content/plugins/chronoforms/cegcore/libs/arr.php(60) : eval()'d code. Error message: Uncaught Error: Cannot use string offset as an array in /home/penderlawco/public_html/wp-content/plugins/chronoforms/cegcore/libs/arr.php(60) : eval()'d code:1Stack trace:#0 /home/penderlawco/public_html/wp-content/plugins/chronoforms/cegcore/libs/arr.php(60): eval()#1 /home/penderlawco/public_html/wp-content/plugins/chronoforms/admin/chronoforms/chronoforms.php(184): GCore\Libs\Arr::setVal(Array, Array, '')#2 /home/penderlawco/public_html/wp-content/plugins/chronoforms/cegcore/libs/app_wp.php(246): GCore\Admin\Extensions\Chronoforms\Chronoforms->save()#3 /home/penderlawco/public_html/wp-content/plugins/chronoforms/cegcore/libs/app_wp.php(437): GCore\Libs\AppWp->dispatch(true)#4 /home/penderlawco/public_html/wp-content/plugins/chronoforms/wordpress_gcloader.php(85): GCore\Libs\AppWp::call('admin', 'chronoforms', '', 'save', Array)#5 /home/penderlawco/public_html/wp-content/plugins/chronoforms/chronoforms5.php(86): WordpressGCLoader->__construct('admin', 'chronoforms', 'chronoforms')#6 /home/penderlawc
GreyHead 20 May, 2019
Hi Ken,

Please make sure that you have the latest release of CFv5 installed. See this thread for a similar report.

Bob
kenmcmahon 20 May, 2019
Hi Bob, I'm on v5.0.17 which according to the website is the most recent version. Or am I missing something?
Ken
kenmcmahon 20 May, 2019
Seen the fixes. I'll try that, or maybe revert to an earlier PHP version.
Thanks Bob.
Ken
kenmcmahon 21 May, 2019
ok, I've reverted to PHP7.0 and am able to edit with no errors.
Bob, given that a lot of people are going to be finding themselves in the same place when they update to PHP 7.2, will there be an update to Chronoforms 5 for WP to address this?
Thanks
Ken
healyhatman 21 May, 2019
If you like keeping things updated, it might be time to move to v6
GreyHead 21 May, 2019
Hi Ken,

I imagine so but that is a question for Max, if he doesn't respond here, please use the Contact menu aboe to ask him directly,

Bob
kenmcmahon 21 May, 2019
Thanks, wasn't aware there was a v6, I'll do that.
Ken
sactobob 30 Apr, 2020
I had a similar issue. Might be related. Joomla 3.x site, getting the same captcha error. Other websites on the same server (cPanel) working fine, only this one website. Changing out PHP versions had no affected. The issue was php-fpm was turned off for this one site. Turned it on and all worked. I run that on all websites, this one must have changed or slipped through.
This topic is locked and no more replies can be posted.