The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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.