The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Exporting form submissions memory error - Solution - 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: Exporting form submissions memory error - Solution (/showthread.php?tid=2177) |
Exporting form submissions memory error - Solution - FriedGeek - Sep 4th, 2012 A few weeks ago I had experienced an error when trying to export form submissions to Excel, CSV, and printable page. The error said that I had exceeded the memory limit and that it tried to alot so many bytes. I should have copied the error so you could see exactly what it said but I didn't have time to post it here. I figured it out rather quickly. It's not a bug in formtools but rather something that resulted from a server that's maximized for security so I believe it's important for others to know what to do if they come across this issue. If this happens to you, there is an easy fix if you have access to your server's php configuration file (php.ini). On some systems, the path may be usr/local/lib. WHM has a php configuration page but I never use it because it looks like it could screw things up. Seriously. I feel better being able to edit the actual php.ini file itself. Always back-up your php.ini file before you make any changes. In php.ini Look for the line: memory_limit If the default number is less than 50M (mine was set at a default of 32M for security reasons), just change it to a higher number such as 75M or 100M providing your server has a lot of memory to work with. Restart apache (or whatever http server you're using) and that's it. Try exporting a form submissions file to make sure it's working. If you're on a shared hosting account and run into this problem, you'll need to ask your host if he can increase this setting or set this up in a local .htaccess file for your account. |