I'm trying to post a form with about 10 - 15 fields in it -- which I've done on other Drupal sites many times before -- but this time (using 4.7.3 and form/survey 4.7) I'm getting a Request-URI Too Large error. I've done a bit of research and, other than re-compiling Apache with a higher LimitRequestSize, I don't see any easy solutions.

Ideas?

Phillip.

Comments

scroogie’s picture

I dont know if its usual behaviour that the data gets appended to the request uri. Are sessions or POST probably deactivated?

phillipadsmith’s picture

This is from the server log:

http://domain.com:80/%3Cdiv+class%3D%22item+entry%22%3E+%0A+++%0A++%3Cdi...
tle%3D%22This+field+is+required.%22%3E%2A%3C/span%3E%3C/label%3E%0A+%3Cinput+type%3D%22text%22+maxlength%3D%2264%22+name%3D%22edit%5Bfield-2%5D%22+id%3D%22edit-field-2%22++size%3D%2264%22+value%3D%22er%22+class%3D%22form-text+required%22+/%3E%0A%3C/div%3E%0A%3Cdiv+class%3D%22form-item%22%3E%0A+%3Clabel+for%3D%22edit-field-3%22%3EWeb+site+%281%29%3A+%3C/label%3E%0A+%3Cinput+type%3D%22text%22+maxlength%3D%2264%22+name%3D%22edit%5Bfield-3%5D%22+id%3D%22edit-field-3%22++size%3D%2264%22+value%3D%22%22+class%3D%22form-text+error%22+/%3E%0A+%3Cdiv+class%3D%22description%22%3E%28your+own+web+site%2C+if+you+have+one%29%3C/div%3E%0A%3C/div%3E%0A%3Cdiv+class%3D%22form-item%22%3E%0A+%3Clabel+for%3D%22edit-field-4%22%3EWeb+site+%282%29%3A+%3C/label%3E%0A+%3Cinput+type%3D%22text%22+maxlength%3D%2264%22+name%3D%22edit%5Bfield-4%5D%22+id%3D%22edit-field-4%22++size%3D%2264%22+value%3D%22%22+class%3D%22form-text+error%22+/%3E%0A+%3Cdiv+class%3D%22description%22%3E%28another+relevant+site%2C+i
f+you%27d+like+to+include+one%29%3C/div%3E%0A%3C/div%3E%0A%3Cdiv+clas

phillipadsmith’s picture

Not sure about session POSTs. Thoughts on where that would be set? In the .htaccess?

phillipadsmith’s picture

Sorry for the silly questions. So, I've tried a much simplier form (one text input) and it posts just fine. I'm guessing there's a limit to the size of the form (via Apache) that should be considered when creating new surveys. Any way to avoid this?

Phillip.

scroogie’s picture

Wait a second, this looks really awkward. I know that the standard states that there is no limit to request, but afaik every server places a limit on GET URIs, so they should not be used to transfer whole html-pages, which is what this request looks like (its raw html code).

phillipadsmith’s picture

Yep -- I agree -- it looks quite odd to me too that the whole page is being submitted.

phillipadsmith’s picture

Not sure if this is helpful... but, if I turn off all field-level validation, the survey posts just fine.

greenmachine’s picture

Never got fixed, huh? I just ran into this problem as well with a client. I wonder if the upgrade to 4.7 did it? I was using survey before with no problem.

Removing all field validation *and* removing any "required" status from fields seems to make the thing work again, but I'm not totally sure yet.

Is the Webform module supposed to be the replacement that has actual development and bug fixing?

gaele’s picture

Status: Active » Closed (duplicate)
phillipadsmith’s picture

Yep: I've switched to Webform for this requirement.