WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => Modules => Topic started by: KimCR on July 04, 2019, 09:01:14 AM

Title: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: KimCR on July 04, 2019, 09:01:14 AM
I am hoping that someone will be able to assist.
An mpForm page was working fine until I upgraded the site to WB 2.12.2 r378. The mpForm module is v 1.3.28. PHP is Version 7.2.19.

After completing the form, including the verification code, the visitor's form has a red ribbon at the top which says "Please complete or correct the fields in red color!" And at the bottom of the form the verification field label turns red "Verification code (SPAM protection)*:", the background of the field turns red and below it in red appears "Fill in the result The verification number (also known as Captcha) that you entered is incorrect."

With my limited knowledge I have been unable to find a solution. I have used the standard Form module for another form on the same with no issues with the verification. However, the larger form with the problem needs to have date fields which the standard Form module doesn't have. I would really like to get mpForm working again.

I have attached a screenshot of the error that pops up above the Submit button.

I would very much appreciate any assistance.
Thank you in advance,
Kim
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: dbs on July 04, 2019, 09:15:22 AM
Hi, my test with mpForm 1.3.31 on WB 2.12.2 & PHP7.3 was successfully.

Try to change the Captcha-Typ in Admin-Tools > Captcha Spam-Protection v2.0.0
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: KimCR on July 04, 2019, 03:54:51 PM
Thank you dbs for your suggestion however changing that setting hasn't changed the error.
Kim
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: dbs on July 04, 2019, 04:05:38 PM
Is there something in the error.log? Click the X-button.
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: Martin Hecht on July 04, 2019, 05:49:24 PM
looks as if $_POST['captcha'] has been changed to $_POST['captcha'.$namespace] in the latest WB version, right? So, modules that have been using a comparison between $_POST['captcha'] and the corresponding value in the $_SESSION environment have to be updated
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: Martin Hecht on July 04, 2019, 11:30:27 PM
Hi, could you please test the attached version? It contains a fix which hopefully makes the captcha work again with WB 2.12.2
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: KimCR on July 05, 2019, 12:49:34 AM
Thank you Martin! That has done it!!

Last night I had tried reinstalling both mpForm and Captcha Control, even going back to the previous versions. I still had the same result! I gave up and went to bed about 1:30am, not very happy!

This morning when I saw your posts I was hopeful again. I had to manually reinstall the Captcha Control module back to v2. Then "upgraded" to your version of mpForm - it works again first time without stopping at Captcha. Great!!

I thank you very much. I trust this version with your modification will form the basis of a new version of mpForm for WB v2.12.2 and beyond?

Cheers,
Kim
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: Martin Hecht on July 05, 2019, 10:38:34 PM
Hi Kim,

yes, sure. I just have received another feature request today for which I would like to evaluate if it can be easily done, and if so, I would put everything together into the next release.

Cheers, Martin
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: Martin Hecht on July 06, 2019, 02:45:55 PM
Hi Kim,

please find attached the latest version of mpform. It contains the following fixes:
        *** 1.3.32 (Martin Hecht: 06-Jul-2019) ***
        correctly display submission time in backend
        support new captcha form of wb 2.12.2
        delete records from results table, too when ajax is active

 I'm not sure if anyone who can update the addons repository is watching this thread, but if so, I would be thankful if you could update it with the attached zip file.

Cheers, Martin   
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: Luisehahne on July 06, 2019, 04:49:29 PM
Quote
I'm not sure if anyone who can update the addons repository is watching this thread, but if so, I would be thankful if you could update it with the attached zip file.

Done and thanks for your work

Dietmar
Title: Re: mpForm - Verification not working after upgrade to WB 2.12.2 r378
Post by: Martin Hecht on July 06, 2019, 11:02:26 PM
Thanks to you, Dietmar