Hello, i recently upgraded from php7.3 to php7.4, all my forms stopped working. With some help from users on discord i had to change the way recaptcha was coded in the form. Now the form displays but captcha returns with an error. Captcha not valid.
In the grav.log i found an error message:
Form reCAPTCHA Errors: [/contact] ["missing-input-response"]
What causes this problem?
Here is the complete form.md
---
title: Contact
form:
name: contact
fields:
- name: name
label: Naam
placeholder: Uw naam
autocomplete: on
autofocus: true
type: text
validate:
required: true
- name: email
label: Emailadres
placeholder: Uw emailadres
type: email
validate:
required: true
- name: message
label: Bericht
placeholder: Uw bericht
type: textarea
rows: 5
validate:
required: true
- name: honeypot
type: honeypot
g-recaptcha-response:
label: Captcha
type: captcha
recaptcha_not_validated: 'Captcha not valid!'
buttons:
- type: submit
value: Verzenden
- type: reset
value: Wis formulier
process:
- captcha: true
- email:
to: "{{ config.plugins.email.to }}"
subject: "Contactformulier Born-online.nl"
- message: Bedankt voor uw bericht!
- display: /thankyou
---
## Contact formulier
Via onderstaand formulier kunt u contact met ons opnemen.