Import of form fails with forms using a large number of conditional fields.
Description
Admins can import forms from PHP code using the webform interface.
However importing forms with a large number of conditional fields (>= 5 for a rough estimate) sometimes causes an error page to happen.
This is minor as it only affects admins on support tasks.
Steps to Reproduce
- Create a form with a large number of conditional fields controlling the display / require properties of the form fields.
- Export it as PHP code
- Create an empty form for import.
- Click on "import" (only available as admin) :
https://yoursite.ex/node/[nid]/webform/ws-import
- Uncheck both
Keep existing components that are not included in the import
andUpdate components only
boxes as we want to import the full form. - Paste PHP code and save.
Expected behaviour:
The import succeeds, both for form fields and conditional fields.
Actual behaviour:
Error page or failure to import form fields, not clear so far.
Adding a dummy form field to the target form seems to help.
Context
- Which version of Framaforms you are using :
1.0.3
release, usingwebform 7.x-4.23
. - Which browser / OS this happens on : browser-independent.
Additional Information
Might be caused by insufficient memory_limit
or max_input_vars
settings, but it hasn't been checked yet.