<p>I took the example form of the craft CMS <a href="https://docs.craftcms.com/v3/dev/examples/entry-form.html" rel="nofollow noreferrer">Entry Form Documentation page</a> and tried to use it on a test site.
However i always get a HttpException after submitting the Frontend Form.</p>

<p><a href="https://pastebin.com/gnsR7Lb6" rel="nofollow noreferrer">Here's</a> the Stack Trace.</p>

<p>And a <a href="https://i.sstatic.net/D3IRn.jpg" rel="nofollow noreferrer">Screenshot</a> of the Error page</p>

<p>Here's the code</p>

<pre><code>&lt;form method="post" accept-charset="UTF-8"&gt;
  {{ csrfInput() }}
  {{ actionInput('entries/save-entry') }}
  {{ redirectInput('viewentry/{slug}') }}
  {{ hiddenInput('sectionId', entry.sectionId) }}
  {{ hiddenInput('enabled', '1') }}
  {{ hiddenInput('entryId', entry.id) }}

  &lt;label for="title"&gt;Title&lt;/label&gt;
  &lt;input id="title" type="text" name="title"
      {%- if entry is defined %} value="{{ entry.title }}"{% endif -%}&gt;

  {% if entry is defined %}
      {{ _self.errorList(entry.getErrors('title')) }}
  {% endif %}

  &lt;input type="submit" value="Publish"&gt;
&lt;/form&gt;
</code></pre>

<p>It's a multi-site with 3 languages. So maybe its related to the languages.
But i couldn't find any informations for a frontend form in multi-sites.</p>

CC BY-SA 4.0
2019-11-28T11:19:27.747Z
`The user submitting the entry will also need to have the permission necessary to create entries for the section they are posting to.` (https://docs.craftcms.com/v3/dev/examples/entry-form.html), did you already check this?
Romain P.
CC BY-SA 4.0
2019-11-28T11:25:14.700Z
@RomainPoirier well i only tested it myself and i am the admin so it should work.
creme
CC BY-SA 4.0
2019-11-28T11:27:53.833Z
Did you set the `enableCsrfProtection` setting to `true` in the `config/general.php` file?
Romain P.
CC BY-SA 4.0
2019-11-28T11:48:13.013Z
@RomainPoirieryes CsrfProtection is enabled
creme
CC BY-SA 4.0
2019-11-28T16:24:21.223Z
Please double check if you are logged in using a user with required permissions while posting the form, because as seen on your screenshot Craft CMS supposes that you made this action as a guest, not a logged in user.
Romain P.
CC BY-SA 4.0
2019-12-05T15:20:45.503Z
This is really strange. I was logged in but in chrome this error popped up all the time. It's working in Firefox now. Thanks anyway
creme
<form><frontend><frontend-form>
Frontend Form for editing entries HTTP Exception
# Frontend Form for editing entries HTTP Exception

(Asked by: username_0 on 2019-11-27)

I took the example form of the craft CMS Entry Form Documentation page and tried to use it on a test site.
However i always get a HttpException after submitting the Frontend Form.
Here's the Stack Trace.
And a Screenshot of the Error page
Here's the code

  {{ csrfInput() }}
  {{ actionInput('entries/save-entry') }}
  {{ redirectInput('viewentry/{slug}') }}
  {{ hiddenInput('sectionId', entry.sectionId) }}
  {{ hiddenInput('enabled', '1') }}
  {{ hiddenInput('entryId', entry.id) }}

  Title
  

  {% if entry is defined %}
      {{ _self.errorList(entry.getErrors('title')) }}
  {% endif %}

  


It's a multi-site with 3 languages. So maybe its related to the languages.
But i couldn't find any informations for a frontend form in multi-sites.

**Tags:** form, frontend, frontend-form

> **Comments:**
> **username_1**: `The user submitting the entry will also need to have the permission necessary to create entries for the section they are posting to.` (https://docs.craftcms.com/v3/dev/examples/entry-form.html), did you already check this?  
> **username_0**: @RomainPoirier well i only tested it myself and i am the admin so it should work.  
> **username_1**: Did you set the `enableCsrfProtection` setting to `true` in the `config/general.php` file?  
> **username_0**: @RomainPoirieryes CsrfProtection is enabled  
> **username_1**: Please double check if you are logged in using a user with required permissions while posting the form, because as seen on your screenshot Craft CMS supposes that you made this action as a guest, not a logged in user.  
> **username_0**: This is really strange. I was logged in but in chrome this error popped up all the time. It's working in Firefox now. Thanks anyway  

---

## 0 answers

