I have a rather long form (1000 checkboxes) that the customer goes through to order. But I get the following error when it goes over a certain limit (100 items):
Failed to add HTML header.ColdFusion was unable to add the header you specified to the output stream. This is probably because you have already used a cfflush tag in your template or buffered output is turned off
Q: Is that an IIS setting or a ColdFusion administrator setting?
I did some research before posting this question, and it doesn't have to do with AJAX and debug settings. All debug settings are turned off and I get the error on form submit.
You can put as many as you like. However, if you have a lot of fields in your form (like more than 100), then the loading times might get affected.
A limit can be placed on the number of submissions a form receives. An expiration date can also be set for the form.
Does your form POST or GET? If it's a GET you may be maxing out the URL length limit. If it's a POST, then you are probably running into the limit in CF on the number of form fields. This article details how to modify the value.
You may want to consider other ways of sending that data to the server. Perhaps using jQuery to serialise the form and send the JSON as a single parameter?
Sounds very similar to an error we had after moving a site with a large number of fields to a new environment. our error read a bit different but you could be getting a different error depending on what you're doing.
ROOT CAUSE: coldfusion.filter.FormScope$PostParametersLimitExceededException: POST parameters exceeds the maximum limit specified in the server.
There is a coldfusion setting in your runtime.xml file you could try changing or removing:
<var name='postParametersLimit'><number>100.0</number></var>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With