basic captcha: no letters are displayed
beamaria opened this issue · comments
Hi all. I'm trying to implement basic captcha in my form. This is my form:
title: 'Contact Form'
form:
fields:
name:
type: text
label: Name
validate:
required: true
message: 'Please enter your name!'
email:
type: text
label: Email
validate:
type: email
required: true
message: 'Please enter your email address!'
subject:
type: text
label: Subject
validate:
required: true
message: 'Please enter a subject for your message!'
message:
type: textarea
label: Message
validate:
required: true
min: 10
message: 'Email message needs to be more than 10 characters long!'
basic-captcha:
type: basic-captcha
label: 'Are you human?'
placeholder: 'copy the 6 characters'
validate:
required: true
buttons:
submit:
type: submit
value: 'Send Email'
process:
basic-captcha:
message: 'Humanity verification failed, please try again...'
email:
from: '{{ form.value.email }}'
to: '{{ config.plugins.email.to }}'
subject: '[Contact] {{ form.value.subject|raw }}'
body: '{{ form.value.message }}<br /><br />{{ form.value.name }}<br />{{ form.value.email }}'
message: 'Thank you from contacting us!'
display: /form/thankyou
But when I go to my contact form no letters are displayed:
I copied the documentation for basic captcha and I also tried to change the default values, but no success.
Working with:
Grav: 1.7.37.1
Admin panel: 1.10.37.1
Gantry 5: 5.5.15
Template by Rocket Theme
Still no solution after a month??? Forms are an essential part of a website!!
Well the problem is that it works for everyone else, just not you. Do you have PHP GD installed?
Hi again Andy, I've found the source of the issue. I tried the code in MAMP environment, which evidently hasn't any GD enabled.
Tried again on the online server and it works!. Thanks for pointing me in the right direction!