0

Whenever I submit my contact form and check with the Chrome dev tools, I am getting a 302 not found error for contact/index/post/ an empyt error message on the frontend and a redirect to the contact form. Nothing is in the logs.

The form key is also there:

<input name="form_key" type="hidden" value="G8qe2gaMu5HWXclx" />

I checked if the controller is there and it seems that it is, its in vendor/magento/module-contact/Controller/Index/Post.php and the content also looks ok.

Strange thing is, whenever I add something to test if the code really goes there, it seems that it is not coming to the excecute method.

Any idea how I could solve this?

Magento 2.2.3

  • Are you creating a custom contact form? – Khoa TruongDinh Sep 12 at 4:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.