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
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
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
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
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
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
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
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
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
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
Memory error on form submit - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: Memory error on form submit (/showthread.php?tid=761)



Memory error on form submit - troopa - Jun 27th, 2010

Hi

I have installed form tools many times on different servers and never had an issue like this.

I have a shared hosting account, with formtools on one domain and the form itself on another. The formtools install is working fine, its let me setup the form, define all the fields etc. However once I try and submit the form I am getting a memory error:

Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 35 bytes) in /usr/www/users/wildweb/forms/process.php on line 193

I have had the php memory limit pushed up to 100mb by my host (it was originally on the default 16mb) I have tried doing a clean install again and still have the same issue. Is this a problem with my host ?

As I say formtools admin section is fine, behaving 100% normally. I only get this error when a form gets submitted. I also tried simplifying the form down to just a few fields, and still got the same error.

Any suggestions ?


RE: Memory error on form submit - Ben - Jul 4th, 2010

Hi Troopa,

Uh-oh, that doesn't sound good... Form submissions shouldn't take much memory at all - they're just "dumb" insertions into the database. There may be additional processing such as sending emails and pre-processing the incoming data, but nothing that should take that amount of memory.

Most larger apps required 64MB - some 128, but 100MB for Form Tools should really be fine. In your case, something's not right: that error message indicates that it's exhausting the entire 100MB of memory while attempting to allocate a mere 35 bytes. Weird...

Do you have any email templates for the form? Could you try temporarily disabling them? How about Submission Pre-Parser, or Hook Manager module scripts - do you have any set up for that form? If so, disable them too.

Tricky to know what to suggest... let me know!

- Ben


RE: Memory error on form submit - troopa - Jul 5th, 2010

Hey Ben,

Thanks for the reply. Still stuck, I tried deleting the email template I had set and I have disabled all the modules to see if that would make a difference.

I think I am just going to have to code a php mail script and not use formtools on this server for the time being.


RE: Memory error on form submit - Ben - Jul 10th, 2010

Hi Troopa,

That's a shame! But it's certainly an option.

If you'd like me to look at it, email me at ben.keen@gmail.com with the following info & I could log on and debug it directly:
- temporary FTP info
- the URL of your form & Form Tools installation & your FT login info.
- a link to this thread so I don't lose track

Ben


RE: Memory error on form submit - adviation - Aug 14th, 2010

I am having the same problem. I added a php.ini file to the form tools directory and set the values to this:
upload_max_filesize = 10M

memory_limit = 10M

Then the same issue occured with the global/code/administrator.php

I added a php.ini there as well, but it's still giving the error.

HELP!


RE: Memory error on form submit - Ben - Aug 14th, 2010

Hi Lee - I just emailed you. Let me know!

- Ben


Error Code: #101 - farhaenis - Nov 27th, 2010

Hi,
I have this error when using a new form.i red the documentation:
Before trying to put through your test submission, you should get your form working with this function. Add this PHP code to top of the FIRST page in your form (even if it's a single page form):

<?php
require_once("../global/api/api.php");
$fields = ft_api_init_form_page("", "test");
?>

my problem is that i dont now where should i copy this cod.
Please help me.


RE: Memory error on form submit - bill.mcbride - Dec 17th, 2010

possibly a related problem here...

i get this message whenever i try to edit a database listing using view submissions.

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 72 bytes) in /var/www/htdocs/formtools/global/code/submissions.php on line 610

i also sent this in as an email, ben

thanks

bill




RE: Memory error on form submit - Ben - Dec 18th, 2010

Hi Bill,

As per my email, check out this post:
http://forums.formtools.org/showthread.php?tid=375&highlight=memory_limit

I've been working on improving the speed of a few core pages (the submission listing & the edit submission page especially), which is part and parcel with reducing the memory allotted. Ultimately I want to review the whole script to minimize memory usage, but that'll be down the road.

All the best -

Ben



RE: Memory error on form submit - bill.mcbride - Dec 22nd, 2010


That fixed it, thanks!

upped the php.ini mem limit to 64M


bill

(Dec 18th, 2010, 9:57 AM)Ben Wrote: Hi Bill,

As per my email, check out this post:
http://forums.formtools.org/showthread.php?tid=375&highlight=memory_limit

I've been working on improving the speed of a few core pages (the submission listing & the edit submission page especially), which is part and parcel with reducing the memory allotted. Ultimately I want to review the whole script to minimize memory usage, but that'll be down the road.

All the best -

Ben