After updating from Form 8.0.6 to version 8.1.0, the “Math Puzzle” challenge type no longer works.
After trying all possible settings without success, I was forced to revert to version 8.0.6.
Is this a known issue?
Is there a solution?
After updating from Form 8.0.6 to version 8.1.0, the “Math Puzzle” challenge type no longer works.
After trying all possible settings without success, I was forced to revert to version 8.0.6.
Is this a known issue?
Is there a solution?
See if this know issue provides some help. If not, add your own comment.
Please feed any results back here.
I read what was written about Issue #622. The problems described there concern version 8.0.6.
The crazy thing is: In Issue #622 ganakee writes, “… I was stuck in math puzzles rather than text …”.
For me, it’s the other way around: I can’t get away from “Random Characters,” even though I specify “Math Puzzle” in the settings.
@hjb, Your issue and the issue at Gitbut are both about the Math Puzzle. Andy says it has been fixed in 8.1.0, but according to you it’s not. Right?
Let Andy know by adding a comment with your version and your issue.
I’ve tested the latest 8.1.0 version quite extensively with math and chars with basic captcha and it works well.. What are your config options?
This is my ../user/config/plugins/form.yaml:
enabled: true
built_in_css: true
inline_css: false
refresh_prevention: false
client_side_validation: true
debug: false
inline_errors: false
modular_form_fix: true
files:
multiple: false
limit: 10
destination: self@
avoid_overwriting: false
random_name: false
filesize: 0
accept:
- 'image/*'
recaptcha:
version: 2-checkbox
theme: light
site_key: null
secret_key: null
turnstile:
theme: light
site_key: null
secret_key: null
basic_captcha:
type: math
debug: true
image:
width: 135
height: 40
bg: '#ffffff'
chars:
length: 6
font: zxx-noise.ttf
size: 24
box_width: 200
box_height: 70
start_x: 10
start_y: 40
bg: '#ffffff'
text: '#000000'
math:
min: 1
max: 16
operators:
- +
- '-'
Note the type: math
The part concerning the captcha in form.md:
title: Anmeldung
process:
markdown: true
twig: true
form:
fields:
...
datenschutz:
label: 'Die Datenschutzerklärung akzeptiere ich'
type: checkbox
validate:
required: true
basic-captcha:
type: basic-captcha
placeholder: 'Ergebnis der Rechenaufgabe...'
label: 'Ich bin kein Roboter!'
validate:
required: true
buttons:
submit:
type: submit
value: senden
reset:
type: reset
value: 'zurück setzen'
process:
basic-captcha:
message: 'Bist Du wirklich kein Roboter?<br>Bitte versuche es noch einmal!'
And this is the result using form-8.1.0:
If I use the same settings with version 8.0.6, the result is
With version 8.0.6, both variants “math” and “characters” are rendered correctly. 8.1.0 always displays the character variant regardless of which “type” is set.
I’ve observed this problem on three different sites. All sites are running Grav v1.7.50.3 with different themes: Quark, Helium, and Typhoon.
What is wrong here?