<p>Right, the issues was that there was a validation error on a field, but the form didn't reload and display those errors, it just went to a 404 page.</p>

CC BY-SA 3.0
2016-11-14T15:18:37.960Z
2016-11-14T15:18:37.960Z
John
<p>I have a frontend Entry Form that will not save an entry and goes to a 404 page.</p>

<p>Basically i have this:</p>

<pre><code>&lt;form method="post" accept-charset="UTF-8" enctype="multipart/form-data" class="add-a-resource__form"&gt;
{{ getCsrfInput() }}
&lt;input type="hidden" name="action" value="entries/saveEntry"&gt;
&lt;input type="hidden" name="redirect" value="/resources/thank-you"&gt;
&lt;input type="hidden" name="sectionId" value="4"&gt;
&lt;input type="hidden" name="enabled" value="1"&gt;
&lt;input type="hidden" name="typeId" value="4"&gt;
&lt;input type="hidden" name="fields[topContent]" value="test"&gt;
&lt;/form&gt;
</code></pre>

<p>And in the log in the session array i have:</p>

<pre><code>'9df612913c35fa7bdbde58405537f412__timeout' =&gt; 1479139200,
  '9df612913c35fa7bdbde58405537f412Yii.CWebUser.flash.error' =&gt; 'Couldn’t save entry.',
  '9df612913c35fa7bdbde58405537f412Yii.CWebUser.flashcounters' =&gt; 
  array (
    'error' =&gt; 0,
  ),
</code></pre>

<p>I am logged in as an admin so have permission to write to the channel, the details are right in the hidden fields, but when i submit the form, it goes to a 404 page no matter what i put in the redirect input.</p>

<p>Any ideas?</p>

<form><entry-form>
Entry Form doesn't save the entry and goes to 404 page
# Entry Form doesn't save the entry and goes to 404 page

(Asked by: username_0 on 2016-11-14)

I have a frontend Entry Form that will not save an entry and goes to a 404 page.
Basically i have this:

{{ getCsrfInput() }}








And in the log in the session array i have:
'9df612913c35fa7bdbde58405537f412__timeout' => 1479139200,
  '9df612913c35fa7bdbde58405537f412Yii.CWebUser.flash.error' => 'Couldn’t save entry.',
  '9df612913c35fa7bdbde58405537f412Yii.CWebUser.flashcounters' => 
  array (
    'error' => 0,
  ),

I am logged in as an admin so have permission to write to the channel, the details are right in the hidden fields, but when i submit the form, it goes to a 404 page no matter what i put in the redirect input.
Any ideas?

**Tags:** form, entry-form


---

## 1 answers

### Answer by username_0 on 2016-11-14. Score: 1

Right, the issues was that there was a validation error on a field, but the form didn't reload and display those errors, it just went to a 404 page.


---

