forked from technik-kvz/mautic-recaptcha
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Found error like
[2025-12-15T13:46:35.442658+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "Key "explicitConsent" for sequence/mapping with keys "scoreValidation, minScore, buttons" does not exist." at /var/www/mautic/public_html/plugins/MauticMultiCaptchaBundle/Resources/views/Integration/recaptcha.html.twig line 172 {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): Key \"explicitConsent\" for sequence/mapping with keys \"scoreValidation, minScore, buttons\" does not exist. at /var/www/mautic/public_html/plugins/MauticMultiCaptchaBundle/Resources/views/Integration/recaptcha.html.twig:172)"} {"hostname":"icomp4","pid":121139}
I see 500 error during this
I fix that with code
FILE="/var/www/mautic/public_html/plugins/MauticMultiCaptchaBundle/Resources/views/Integration/recaptcha.html.twig"
sudo cp -a "$FILE" "${FILE}.bak.$(date +%F_%H%M%S)"
sudo sed -i 's/{% if field\.properties\.explicitConsent %}/{% if (field.properties.explicitConsent|default(false)) %}/' "$FILE"
sudo -u www-data php /var/www/mautic/public_html/bin/console cache:clear
After that 500 error disappeared
Metadata
Metadata
Assignees
Labels
No labels