Hi,

I have searched through multiple similar issues but I can not find a solution.

What happens to me:
- Enter name and type for new component, click "Add", the page reloads and nothing happens.
- Move a component around, hit save and the change is not saved.

Some info:
- Drupal 6.28, Webform 6.x-3.19, php 5.3.27, mysql 5.5.32 (php memory 256MB and tried also 384)
- The issue is restricted to one (long) form in my site. Other webforms work OK.
- This one is 3 years old and contains a few hundred submissions I do not want to erase.
- There are 566 components including fieldsets and other types.
- The webform was created in older server setup with older php, mysql versions and at sometime the databases were upgraded to 5.5.32.
- Adding and editing submissions works as expected.
- Editing existing components works as expected.
- Cloning existing components works as expected.
- Moving components by manually editing their weight seems to work although not very accurately as there so many components (and I do not know how grouping is stored in the database).
- I tried de-activationg various modules such as Webform Report, Content Access and others: no-effect.
- I also tried restarting MySQL and optimizing the tables.

So, it would seem to me that it is mainly the interface that can not handle what is asked?

Comments

nisher’s picture

I'm experiencing a similar issue; I can ADD a new component or edit one, but when I try to reorder a component and submit the form I receive the following error:

"When adding a new component, the name field is required."

I've not been able to find a solution.

nisher’s picture

It seems our issue is caused by our custom theme; somehow the theme is causing the Submit button to be displayed rather than the Save button.

arx-e’s picture

It seems we are facing different problems. I am not getting any error message.
To me it's happening on a site with a custom theme based on Zen (6.x-2.1).
But as I describe it is happening only on one form (one with lots of components).

The "Save" button at the bottom has the following code (I have added greek translation besides the english "Save"):
<input id="edit-submit" class="form-submit" type="submit" value="Αποθήκευση / Save" name="op">
I don't think there is something wrong with this. As I said for another old form as well as for any new form it is working.

arx-e’s picture

Issue summary: View changes

- Adding and editing submissions works as expected.

nhck’s picture

Stubmled upon a similar issue:

  • Have you tried switching your language to English?
  • When you click Add in the resulting path have you tried replacing a possible language prefix (e.g. "gr") by "en"?

For me it works when I switch to English.

quicksketch’s picture

Title: Cannot add components or move them around » Cannot add components or move them around with large forms (400+ components)
Category: Bug report » Support request
Issue summary: View changes

Updating the title so I know this is large-form specific. I've heard of larger forms yet (800+ fields) so I think this may be environment specific.

- Enter name and type for new component, click "Add", the page reloads and nothing happens.
- Move a component around, hit save and the change is not saved.

The other day I was working with a site that couldn't save the permissions form. It did the exact same thing that the form reloaded, but nothing happened. This was because of a limit set in PHP to limit the number of elements in POST requests (max_input_vars). You might try increasing these values to allow for larger POST sizes:

max_input_vars = 5000; // Defaults to 1000
post_max_size = 32M; // Defaults 8M

Suhosin (a security extension) can also cause general havoc with large forms (and uploads). There's some information about these kinds of problems in this StackOverflow post: http://stackoverflow.com/questions/8710185/new-limit-within-php-1000-fie...

For now, I don't think this is actually a bug in Webform, but a configuration issue that may arise with large forms.

arx-e’s picture

Thank you quicksketch!
I just did a quick check increasing the default values (1000>2000 and 8M>12M) and now I can save changes.

quicksketch’s picture

Status: Active » Fixed

Wow nice, well now we know a new caveat when dealing with large forms. Thanks for following-up and I'm glad we figured this out.

Status: Fixed » Closed (fixed)

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

GaryDev’s picture

I'm sorry to resurrect this post but it's been two days and I've found no solution. I'm having a difficult time with a webform that has stopped adding new components and stopped rearranging row weights. The symptom is as described previously: I click ADD to add a new component of type textfield and provide it a name of test99. The page refreshes but the "New Component" page does not appear. I'm able to clone a component and rename it, however I'm unable to arrange the row weights in a manner that I need.

Drupal 7.34, Webform 7.x-4.2

I'm on a GoDaddy shared hosting account with Cpanel. I've adjusted my php settings:
max_execution_time 300
max_input_time 60
memory_limit 512M
post_max_size 128M
upload_max_filesize 256M

In addition, I've increased the max_increase_vars to 15000. None of these changes have any effect on the symptom. I'm only able to change this value using .user.ini and the result is that it changes for the Local Value but the Master Value remains at 1000 (the default)

My form has about 100 components and only about 10 conditionals.

If I use the url to create the component it works - however I'm unable to rearrange the row weights. I can create a new form and add new components to it. That new form has only a couple of components added for testing.

If I remove the module and re-install it, will I lose my current form work?

Thanks in advance for any guidance.

arx-e’s picture

Gary, the change that solved it for me was a small increase of the following 2 values in php.ini:

max_input_vars = 2000; // Defaults to 1000
post_max_size = 12M; // Defaults 8M

And my form is way bigger than yours (around 400 components if I remember correctly).

If you can not effectively do this, you could rearrange components by manually (phpmyadmin) editing the weight values in the database. I have done this successfully in the past but it was a bit tricky with nested components.

GaryDev’s picture

Thanks for you quick response, arx-e.
I intalled devel module to enable some debugging data. Now when I go admin > content > my form > edit I get white screen.

I have max_input_vars set to 15000 and post_max_size to 128M. They are set really high and it has zero effect on the symptom. The host, GoDaddy is no help.

I'll keep plugging away.

DanChadwick’s picture

Try the latest dev. It has some additional testing of max_input_vars for the webform itself (webform_client_form) and for the conditionals page. There isn't anything special for the components page, but that would be hitting the 1000 max_input_vars limit with 400 components. I am wondering if your GoDaddy account is REALLY letting you change max_input_vars.

GaryDev’s picture

Hi Dan,
Thank you very much. If I install the latest dev will I lose any of my previous work? Additionally, if I uninstall and re-install the module will the values in the tables related to the module remain intact?
When I check phpinfo my max input vars show:
Local Value | Master Value
max_input_vars 5000 1000

The local value was created by .user.ini and the master value is not affected by any changes I make.

Thank you for the help.

DanChadwick’s picture

Version: 6.x-3.19 » 7.x-4.x-dev

You will not lose data if you upgrade from 7.x-4.2 to the current 7.x-4.x-dev. 7.x-4.3 has not been created yet.

If you uninstall, you lose all your data.

A little googling shows that the local value may not actually be used. I don't know how GoDaddy works, so I can't comment further. I suggest you set up a local development environment and work on this there so you don't endanger your production environment.

https://bugs.php.net/bug.php?id=63098

GaryDev’s picture

So I overwrote the latest release 7.x - 4.2 with the dev version 7.x - 4.x-dev. I cleared the cache and refreshed the webform content (node) that is the source of my issue.

I attempted to add a new component and the result is the same - the page refreshes with no "New Component" page displayed and no indication that a new component was added. No error message is displayed, nothing.

DanChadwick’s picture

I'm pretty sure your problem is your GoDaddy installation has max_input_vars too low.

DanChadwick’s picture

GaryDev’s picture

An update for anyone experiencing this issue: Setting the max_input_vars via .user.ini in the site root will update the local value in that folder only - the master value is not changed (using GoDaddy shared hosting with cpaenl). In my case, the Drupal installation is in a sub directory for development purposes. Moving the .user.ini folder to the sub directory made the max_input_vars apply to the proper folder and made the webform building work again.

Thanks for your help DanChadwick and arx-e.