The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Error on submission - 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: Error on submission (/showthread.php?tid=1915) |
Error on submission - nevada - Feb 26th, 2012 I'm getting this error on hitting continue: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource global/code/field_validation.php on line 286 Warning: Cannot modify header information - headers already sent by (output started global/code/field_validation.php:286) /modules/form_builder/global/code/generator.php on line 446 I'm running the latest premium version 2.2.1 Thanks in advance if anyone can shed any light on this. RE: Error on submission - sogreen - Apr 9th, 2012 (Feb 26th, 2012, 3:17 AM)nevada Wrote: I'm getting this error on hitting continue: I am getting the same error. Have you found the cause of this problem yet? RE: Error on submission - Ben - Apr 16th, 2012 Interesting... Would you mind running the System Check module tests to see if it identifies any problems on your system? btw, if you need a quick fix, just add the following line to your global/config.php file: PHP Code: $g_default_error_reporting = 1; That will suppress the error message and allow the redirect to work properly. In the meantime, I'll look at the code to see if I can spot anything fishy. - Ben RE: Error on submission - Ben - Apr 16th, 2012 Hey guys, I found one potential problem, but I'm not sure if it's causing your problems. I'll include the fix in the next release, but if you want to try it now, edit the /global/code/field_validation.php file and on line 274, after this code: PHP Code: function ft_get_php_field_validation_rules($field_ids) Add the following 2 lines: PHP Code: function ft_get_php_field_validation_rules($field_ids) if you try it out, let me know if it works. - Ben RE: Error on submission - sogreen - Apr 16th, 2012 1. I ran the System Check module and there were no problems identified. 2. I tried adding the 2 lines to the field_validation.php file and it did not work. 3. I also tried adding $g_default_error_reporting = 1; to the config file and that didn't work either. Also worth noting... When I click "Continue" I am redirected to a blank page that displays the warning. The automatic emails are also triggered as though the form has been completed but the submission does not show up in the form tools view interface. RE: Error on submission - Ben - Apr 16th, 2012 Hmmm... the last one is especially weird. That should suppress all warnings. So even though you added that line to the config.php file, you still see a warning outputted on the screen? RE: Error on submission - sogreen - Apr 16th, 2012 Yes, this is correct. RE: Error on submission - Ben - May 3rd, 2012 Hi guys, Sorry for the wait on this. Turns out it was a Core problem. Just upgrade to 2.2.5 and the problem should go away! - Ben |