The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Error 500 - Allowed memory size of 268435456 bytes exhausted - 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 500 - Allowed memory size of 268435456 bytes exhausted (/showthread.php?tid=11786) |
Error 500 - Allowed memory size of 268435456 bytes exhausted - trec-r - Feb 16th, 2016 First time using form tools and everything looks like it is going well. I am adding form tools to a preexisting external site and form. I used the direct method and followed the steps. After the initial steps I removed the following line as instructed. Code: <input type="hidden" name="form_tools_initialize_form" value="1" /> At this point I uploaded the html, refreshed the page, checked source, and resubmitted the form. That is when I got the error 500. Checking the error logs each time it is the same. Code: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) I am using Form Tools v 2.2.6 on CentOS6.7 PHP 5.5.30. Ran system checks, however they would not complete any of the Table Verification tests. All other tests ran fine. RE: Error 500 - Allowed memory size of 268435456 bytes exhausted - alexh - Mar 1st, 2016 Not sure why it's doing that, do you have a lot of form fields in this particular form? You should be able to modify your php.ini to increase your memory_limit to something higher than what you have currently provisioned. This might be something your hosting provider can do if you are not familiar with it. That's the only thing I can think of! RE: Error 500 - Allowed memory size of 268435456 bytes exhausted - trec-r - Mar 26th, 2016 Going to give this another try. I am trying to adapt a basekit site to plain html and use form tools. This is for a simple contact form with 4 fields. The error is happening on line 204 of the process.php, the last line of the if for below. Code: if ($form_info["submission_strip_tags"] == "yes") I am guessing it is getting stuck in a loop at that point. I am going to check the form to make sure syntax is correct. Other than that not sure how to fix this. RE: Error 500 - Allowed memory size of 268435456 bytes exhausted - trec-r - Mar 26th, 2016 Found the problem. The name attribute in the input tag used square brackets. After removing the brackets the form is working fine. |