Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An exception has been thrown during the rendering of a template A form can only be submitted once

Tags:

forms

symfony

I have a error in symfony2 when i'am trying to submit a post in my app

An exception has been thrown during the rendering of a template ("A form can only be submitted once") in SmartnodeTalkBundle:Talk:viewchan.html.twig at line 24.

there is a gist with my code

https://gist.github.com/aurelben/9780465

thanks a lot for help

like image 223
Aurélien Pigot Bennour Avatar asked Jan 11 '23 20:01

Aurélien Pigot Bennour


1 Answers

It's just a duplicated "$form->handleRequest($request)"in my code

now it's work

like image 129
Aurélien Pigot Bennour Avatar answered Jan 17 '23 10:01

Aurélien Pigot Bennour