Skip to content

500 error in mautic #4

@AlexanderZlobinM1

Description

@AlexanderZlobinM1

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions