I was on 3.7. I figured if I was doing the work I'd go to 4.
I ran the 3.7-3.8 script. I ran the 3.8-3.9 script. I ran the 3.9-4.0 script.
I pulled the site contents down via git (I'm running in Azure). I deleted everything. Copied in all the 4.00 stuff. Copied back my two .txt files as per the instructions. Committed and pushed back to the server.
That all seemed to work - the site came up, I can see my previous orders, customers, products.
I just checked now and it finally does appear to have updated the captcha setting. Perhaps there's some data caching that takes time to clear/refresh?
Now at least my error is about keys - so I must have mis-entered the new v2 keys and I'll need to try them again.
I assumed private=private and public=secret, but maybe it is the other way around?
var theme = !string.IsNullOrEmpty(captchaSettings.ReCaptchaTheme) ? captchaSettings.ReCaptchaTheme : "white"; var captchaControl = new Recaptcha.Web.UI.Controls.Recaptcha { ID = "recaptcha", ColorTheme = Recaptcha.Web.ColorTheme.Light, PublicKey = captchaSettings.ReCaptchaPublicKey, PrivateKey = captchaSettings.ReCaptchaPrivateKey };
var htmlWriter = new HtmlTextWriter(new StringWriter());
captchaControl.RenderControl(htmlWriter);
return htmlWriter.InnerWriter.ToString(); } } }
Step 3 In Nop.Web.Framework > UI > Captcha, change the file CaptchaValidatorAttribute.cs
using System.Web.Mvc; using Nop.Core.Infrastructure; using System; using System.Net.Http; using Newtonsoft.Json.Linq; using Nop.Services.Tasks; using System.Threading.Tasks;
When I use nopcommerce 3.9, recaptcha has no error when submitting the form. I have upgraded to nopcommerce 4.2 and feel recaptcha errors regularly. I submit the form 10 times, the error is 8 times or 9 times and only 1 time. I use the login form, contact us etc. by default nopcommerce.
Has anyone ever encountered this problem with nopcommerce version 4.2. I install nopcommerce 4.2
For anyone looking for a quick fix (for version 3.6), I have uploaded the files you need to change to my Github. I obviously followed the instructions from this post - but it still took me way longer than it should have to figure it all out.
I also included instructions if you want to do it from scratch and republish/recompile NOP Commerce yourself.
I recently moved my site to a shared hosting platform with 4.20 (no source). However, when reCAPTCHA enabled, on the contact page it always shows "The reCAPTCHA response is invalid or malformed. Please try again." Any solutions of this? without this, many scams coming in. please.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.