Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Runtime exception page not found (modular form; action route)

Solved by colin avolve View solution

Started by colin avolve 3 years ago · 1 replies · 436 views
3 years ago

I am testing a contact form in a modular page.

The form fields display as expected, and I have followed the details at

https://learn.getgrav.org/17/forms/forms/how-to-forms-in-modular-pages

to double check I am doing it correctly. In particular

YAML
form:
    action: /home

where 'home' is the page route for the modular page.

When I attempt to send a message, there is a

TXT
 RuntimeException (400)
Display page not found. Please check the page exists.

(with reference to the form plugin).

When I attempt to view the modular page directly, using example.com/home I receive a

TXT
404 page not found error

Anyone have a suggestion for what I might be missing, or need to do differently?

Thanks!

3 years ago Solution

In troubleshooting this further, It appears that having

TXT
- display: thankyou   

at the end of

TXT
`process:`

was causing the issue. I had copied this from the example at

https://learn.getgrav.org/16/forms/forms

After removing

TXT
- display: thankyou   

I have successfully tested the form using mailtrap

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 95 15 hours ago
General · by pamtbaau, 20 hours ago
1 61 19 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 356 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago