The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Intermittent #305 failure - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Intermittent #305 failure (/showthread.php?tid=686) |
Intermittent #305 failure - mr_twin - May 5th, 2010 Hello ![]() Since few weeks, I get an intermittent failure. Sometimes, after submitting the form a #305 Error, but I don't know why?! Here is the link to my form:http://www.recht-auf-spiel.de/eure_projekte_eintragen_neu.php And here is the code of the form page: PHP Code: <?php I try to delete the row with "ft_api_delete_unfinalized_submissions(3, true);" but without any result. I think the error appears, when a user starts to fill out the form but go back with the backbutton in the browser and starts again. Have you any idea to solve the problem? Thank you very much and sorry for my bad english :/ ![]() ![]() RE: Intermittent #305 failure - Ben - May 8th, 2010 Hi Mr Twin, Try changing this line: PHP Code: ft_api_delete_unfinalized_submissions(3, true); to this: PHP Code: ft_api_delete_unfinalized_submissions(3, false); The problem is that that second parameter of the function. If set to true, it deletes ALL unfinalized submissions in the database up to the very moment. This is generally a bad idea - if there are any unfinished forms currently being submitted those users will get the 305 error. Hope this helps! - Ben RE: Intermittent #305 failure - mr_twin - May 10th, 2010 (May 8th, 2010, 10:24 AM)Ben Wrote: Hi Mr Twin, Hi Ben, thanks for your solution! I'll try this in few days and give you a feedback ![]() Greetings from germany |