Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error sending the contact-form #26

Open
machtelik81 opened this issue Jun 20, 2021 · 3 comments
Open

Error sending the contact-form #26

machtelik81 opened this issue Jun 20, 2021 · 3 comments

Comments

@machtelik81
Copy link

machtelik81 commented Jun 20, 2021

By sending the contact-form there occurs an error.

if (!$page) {
throw new RuntimeException('Display page not found. Please check the page exists.', 400);
}

The E-Mail is sending successfully. I think it is just the "Thank you" Message.

@tranduyhung
Copy link
Owner

It seems there is a problem with your page's configuration, not a problem from the theme. You check to see if you forgot to create the Thank You page.

@machtelik81
Copy link
Author

It seems there is a problem with your page's configuration, not a problem from the theme. You check to see if you forgot to create the Thank You page.

Is it possible to show a alert or replace the form into a message, instead of showing a new page. The theme is a singlepage so it would be great to keep everything on that side.

@tranduyhung
Copy link
Owner

The theme doesn't support this at the moment. If you want to achieve this you need to override the theme's templates. Here is the instruction for how to submit Form plugin's form with AJAX: https://learn.getgrav.org/17/forms/forms/how-to-ajax-submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants