After adding 42 components, I can't seem to add any more. I've seen some reports of this on the Internet, but not found a solution. I'm guessing it's server-settings, but not sure if I need to tweak PHP or MySql. I'm on a shared server so the opportunity to do both is limited. I can delete a component and replace it with another, but can't add any more. Please advise. Sorry if my search didn't find a solution already published!

Comments

quicksketch’s picture

What do you mean by "can't add any more"? What prevents you from adding more? Is the option missing, does the page time out, do you get an error or a white screen? There's no specific limit in Webform (I've seen forms with hundreds of components), so a description of what is happening is necessary to determine the problem.

drupahell’s picture

Priority: Normal » Critical

Subscribing.

I fill the name of the new component, set it to "mandatory" and "email", and click Add. The page seems to only reload; no component added, no message, nothing. The new component is not listed.

My limit of components seems to be around 82.

WEIRD. This is a very important problem for me right now.

Alex.

quicksketch’s picture

Webform shouldn't be maxed out at any number. My guess is that you may need to increase the PHP memory limit on your server (the default is around 8MB) to something higher, 32MB is pretty reasonable, though I use around 96-128MB if the site is going to be resizing images.

drupahell’s picture

Hey quicksketch, thanks for answering. I'm using 128M limit on my server, so I don't understand why this happens. The strange thing is the way the webform-edit page just reloads when clicking "add" the new component. No error message at all! Some other insight?

I forgot to say. When I try to sort the elements (change order, excuse my english), same thing happens. Page reloads, no change at all!!!
Ouch!!!

alextronic’s picture

subscribing

alextronic’s picture

when I try to add a new component using http://domain.com/node/xx/edit/components/new/textfield&name=xxxxx then in DOES work, but the new field appears on top of all the others, followed by the "add new component" line- (meaning the add-component form appears 2nd in the list)... really strange. Anyway, after doing that, I am not capable of re-ordering the items. It will stay on top, with no error message whatsoever.

alextronic’s picture

Category: support » bug

I don't know if I'm doing well changing the category to "bug report", but I have tried using many browsers and OS, different machines etc., and (the final evidence to me) I have tried this using the Garland theme and... still the same error.

I have found this thread (http://drupal.org/node/448154) but people seem to be really confused, couldn't find anything of help...

alextronic’s picture

BTW I'm using Drupal 6.14 and Webform 6.x - 2.9, if someone needs more information in order to find out if the environment is in any way creating the issue, I can provide. But I can assure the form was being created perfectly until I reached component number 82 (more or less)...

alextronic’s picture

Well, now that I think of it, I have 82 components, but there are 13 variables more added by webform, see generated code at the end of the form, after my fields, namely a few "details[]", "form_...", "op", etc. ...so I guess there is a limit of 95 if the module uses these 13 while the user is editing the form, but hey, in my php config I cannot find such a limit.

In the suhosin directives, I have values that I'd like to override, but doing this to .htaccess (I can't access php.ini) doesn't seem to affect them -- and in fact I don't know if this is the problem.

  php_value suhosin.post.max_array_depth	2048
  php_value suhosin.post.max_vars			2048
  php_value suhosin.request.max_array_depth	2048
  php_value suhosin.request.max_vars		2048
  php_value suhosin.get.max_array_depth		2048
  php_value suhosin.get.max_vars			2048
  php_value suhosin.cookie.max_array_depth	2048
  php_value suhosin.cookie.max_vars		2048
quicksketch’s picture

Category: bug » support
Priority: Critical » Normal

Arg. Suhosin strikes again. If you have Suhosin, definitely try to get rid of it (move hosts or disable it) if possible. Otherwise, max out the values as much as you can. That stupid plugin will just ruin your life. See the FileField handbook page on some other options you should also change: http://drupal.org/node/423478

Alan.Guggenheim’s picture

I Cannot even add one component.

alextronic’s picture

I still have the same problem as in http://drupal.org/node/448154: "Pressing add, does not do anything".

I don't even get the 'New component added' message.

I CAN clone an existing component, and then the new one will be added, but if try to drag it to the last position, I get a "Validation Error" message!!! Weird!

Meanwhile, I'm trying to get rid of suhosin...

Alan.Guggenheim’s picture

I was finally able to fix mine by doing the following:
1- Uninstall the module
2- Delete the module
3- Delete the Webform content type
4- Re-install the module

Good luck.

alextronic’s picture

Alan, first I would like to try tweaking suhosin's parameters. I have some forms with more than 80 fields each and I don't feel like deleting anything really. But, if I have to do something desperate, I will follow your "fix". Thanks!

alextronic’s picture

In my case, the culprit was definitely Suhosin. Following the link #10 gives parameters that let me keep working. Thanks quicksketch. To me, this is Closed.

quicksketch’s picture

Status: Active » Fixed

Super, thanks for the followup guys.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Jrogers13’s picture

Title: Can't add more components (maxed out at 42) » Can't add more components
Version: » 6.x-3.0-beta2
Priority: Normal » Critical
Status: Closed (fixed) » Needs review

I have read through all of the posts in this topic as well as a few others and I still am running into a blank page when I try to administer the components on one of my forms. Everything was working great and it may be a combination issue with node_clone, but here's my situation. I created a form with 81 elements, a page break and then started creating the second page with a fieldset containing 6 elements. I then used clone node and copied the fieldset, changing the name and id, increment a numeral by 1. Everything worked up to 8 from 1. When I tried to duplicate number 8 and create 9, the form elements were created but it returned me to a blank components screen. This happened in 6.x-2.9 and is still present after updating to 6.x-3.0-beta2.

Any help would be appreciated.

I can allow access to the admin area if necessary.

Thanks,

Josh

--Edit: forgot to add that I have increased memory limit from 16M to 64M and Suhosin is not installed.
Thanks

quicksketch’s picture

If you're getting a blank screen, the most useful thing is to turn on error_reporting on your server (in php.ini) so that you can see what error PHP is actually throwing rather than a white screen. Wbeform is capable of 300+ components per form, as long as you have appropriate resources available on your server.

quicksketch’s picture

Status: Needs review » Closed (fixed)

Closing again after lack of response.

theorichel’s picture

Having the same problem: cannot add any component. Am on 6-2.9 and a production site. Have uninstalled the module, but to no avail. Have lost some webforms, can anyone tell me which tables I need to restore?

I do not have Suhosin (checked phpinfo( and I have 128 mb memory

Upgraded to 6.30 and now Webform has become a tab in a Story-like form which has no form options anymore. I have not changed anything just updated. Form components still can not be added.

Checked my database, I have only one webform table, is this normal?

Well after some fiddling I have I think 4 tables. Components can still not be added.

Uninstalled Rules, ECommerce and Quiz. Uninstalled and Reinstalled Webform. No improvement

co_mete’s picture

I have the same problem with webform-6.x-3.4

and I don't have suhosin on.

I tried also to uninstall, re-install, no change.

Please don't close saying "server issues" or something like that.

Thanks

jenlampton’s picture

On a webform-enabled node type, on the webform -> Form components tab:

1) enter the name of a components, select "selcect", check "mandatory" click "Add"
2) complete the configurations necessary for the select options, click save.
3) land on componenet list page,
- see the Drupal message: "New component test component added."
- but in the Table: "No Components, add a component below."

jenlampton’s picture

Version: 6.x-3.0-beta2 » 6.x-3.6
Priority: Critical » Major
Status: Closed (fixed) » Active

I edited and saved the node, and all previously added components showed up.

I think it would be a good idea to either
a) not show the webform tab until components can be properly added, or
b) when the fist component is added (or email is configured) the node is updated accodringly.

quicksketch’s picture

Version: 6.x-3.6 » 6.x-2.0-beta2
Status: Active » Closed (fixed)