Announcement

Collapse
No announcement yet.

404/500 on Contact-Us form submission using site specific Recaptcha in v18

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    404/500 on Contact-Us form submission using site specific Recaptcha in v18

    Has anyone else experienced this?

    On a v18 Smart site with site specific Recaptcha keys in place the captcha displays and operates correctly on the contact-us page but on submission you get a 404 orr a 500:
    https://www.graphicz.solutions/smartburgerxviii/

    On the identical site in v16, again with site specific Recaptcha keys in place, the captcha displays and operates correctly and the contact-us form executes correctly:
    https://www.graphicz.solutions/smartburger/

    I copied the v16 MailForm.pl into the v18 site and closed, reopened and refreshed and the contact us page in the v18 site executed correctly and the form was sent.

    This seems to me to point to an issue with the v18 MailForm.pl file but support are resisting this blaming my hosting company.

    Finally I published a php test form with recaptcha2 to the server and this executed correctly.

    I have pored over the comparison of the two MailForm.pl files and Krystal are poring over their logs and we are getting nowhere.

    Please can anyone shed any light?

    Very many thanks

    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    Support have come up with a solution:

    Open the script Mailform.pl and search for the code: -

    Code:
    my $JsonResponse = $SSLConnection->GetResponseJSON();
    Immediately below that, you will see the code: -

    Code:
    if ($JsonResponse->{'success'} == $::TRUE)
    Replace this with the following: -

    Code:
    if ($JsonResponse->{'success'} eq 'true')
    Save the file and exit, then upload the site for the changes to take place online.
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    Comment

    Working...
    X