Hi all,
I’ve a strange issue. When validating my contact form with deliver theme, I’m having the following messsage The requested URL /contact was not found on this server. The requested url seems ok, as I’m coming from it. It drive me crazy.
I didn’t modify the default .htaccess didn’t modify the files from de Template.
I’m wondering if the following file is ok. the part with the action: /contact from modular_alt.md under contact directory in /user/pages/
title: Contact Us
onpage_menu: false
body_classes: "modular header-lite fullwidth"
bg_color: "#B4B093"
form:
name: uxware-contact-form
action: /contact
fields:
- name: name
id: name
label: Nom
classes: form-control form-control-lg
placeholder: Entrez votre nom
autocomplete: on
type: text
validate:
Not sure why it shouldn’t work, if /contact is a valid URL. Try sending me the user/ folder on a PM in Gitter, so I can test locally and see if I can recreate it.
hmm in your routing is your contact page set? of you only try to redirect from the form action. but the routing for the page hasn’t set yet then it wont work.
I’ve tried to download a fresh skeleton deliver theme install on another server. The contact form seems to work.
After submitting, it’s another message, the contact page is found and it’s saying Oops there was a problem, please check your input and submit the form again
I’ve activating the debug in the system.yaml and the $_post is an array with the data filled before. I wonder what this message seems ?
thanks in advance.
I’ve founded it and it seems to be a validation error. Very strange how a form with a simple name, an email and a single message can’t be valid ? And when we can see it in the $_POST with debugger.
Still digging.
Here is the field after submit and the famous oops message <input type="hidden" id="form-nonce" name="form-nonce" value="ddcaa8cad51d843f368a6025cecd5967" pmbx_context="2911A7C3-830A-4481-A8A6-7EFD4FCCC63A">
The values are different, is it normal ?