Skip to content

[typhoon] Contact Form - Timeout Error #485

@cdaters

Description

@cdaters

I am using the Typhoon v4.0.4 theme with GRAV v1.8.0-beta.4, Admin Panel v1.10.48, Email v4.1.2, and Form v7.4.2. I am working with the One-Page Skeleton currently to wrap my mine around it all (pretty much new to GRAV).

I have gone into Form to add my v3 reCaptcha keys, and in Email, I've configured my SMTP for my Admin user account. I've run bin/plugin email test-email and gotten the Message sent successfully! message from the CLI. I can confirm that I received the test message. That said, here is what I see from the "User" perspective...

I see that my reCaptcha is working correctly. I fill in the contact form, and when I submit it, I get the following error:

Oops, your form has timed out, please reload the page and submit the form again.

Example

I never receive the contents of the contact form. Here is how I updated the initial form config for that form:

form:
    name: contact
    action: '#contact-us'
    inline_errors: true
    fields:
        name:
            label: Name
            display_label: false
            placeholder: 'Your full name'
            autocomplete: 'on'
            type: text
            validate:
                required: true
        email:
            label: Email
            display_label: false
            placeholder: 'Your email address'
            type: email
            validate:
                required: true
        phone:
            label: Phone
            display_label: false
            placeholder: 'Your phone number (optional)'
            type: text
        message:
            label: Message
            display_label: false
            placeholder: 'Your message'
            type: textarea
            rows: 4
            validate:
                required: true
        g-recaptcha-response:
            label: Captcha
            type: captcha
            recaptcha_not_validated: 'Captcha not valid!'
    buttons:
        submit:
            type: submit
            classes: 'no-default-style text-white bg-gray-700 hover:bg-primary'
            value: 'Submit Form'
    process:
        captcha: true
        save:
            fileprefix: contact-
            dateformat: Ymd-His-u
            extension: txt
            body: "{% include 'forms/data.txt.twig' %}"
        email:
            subject: '[Site Contact Form] {{ form.value.name|e }}'
            body: "{% include 'forms/data.html.twig' %}"
        message: '<b>Thanks!</b> We&rsquo;ve received your enquiry and will get back to you very soon...'
        reset: true

I cannot think of what might be the hurdle here...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions