Buy Now
Sign in

All fields in designer area disappear after saving!

havex , April 26 2017, 09:55
H
havex 64
April 26 2017, 09:55 #367443
This issue seems to happen after exceeding a total number of fields.
After this happened the first time, I started backing up my form after each step. But can't add more fields.
GreyHead 64
April 26 2017, 14:00 #367450
Hi havex,

Look at the top right corner of the Forms editor and you will see a Max vars setting - this is set as max_input_vars in a PHP.ini file for your site.

When you edit a form there is a count shown next to the blue Preview button at the top right. Once this count gets beyond the Max vars count the form will no longer save properly. The solution is it increase max_input_vars.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
H
havex 64
April 26 2017, 22:16 #367476
Hi Bob,

Unfortunately, this seems not to be the cause.

I have set the max_input_vars at 8000. The count next to the blue Preview button is only 4442 before I start getting this issue after adding a single field.

I have set the error reporting to maximum, but no errors are shown.

Hamid
GreyHead 64
April 27 2017, 07:41 #367482
Hi Hamid,

There are some other settings that might affect this - please see this FAQ

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
H
havex 64
April 27 2017, 09:01 #367485
Hi Bob,

I have checked the FAQ.

I don't see suhosin or mod_security in my php setting. (php 7.0.18)
Magic Quotes  is Off

I did also a little experiment where I set the max_input_vars too low and tried to modify and save an existing form. In this case, the form couldn't be saved but nothing was deleted from the Designer section.

This little test may indicate that this issue where the Designer section is wiped clean is not related to max_input_vars.

What else could it be?

Hamid
GreyHead 64
April 27 2017, 12:21 #367496
Hi Havex,

Possibly something in some custom code that causes an error?

Please take a Form Backup using the icon in the Forms Manager and post it here and I'll take a closer look.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
H
havex 64
April 28 2017, 03:53 #367534
Thanks Bob,

Although long, the form is pretty simple, with one custom code used in some sections.

Section 1
Radio group yes/no (id and name set to radio)
Section 2
{Custom HTML}
<div class="container">
</div>

The php custom code I'm using to pass conditions between sections is this:

<?php
if ( $this->data['radio'] == 'yes' ) {
$display = 'block';
} elseif ( $this->data['radio'] == 'no' ) {
$display = 'none';
}
$style =".container {
display: {$display} !important;}";
$jdoc=JFactory::getDocument();
$jdoc->addStyleDeclaration($style);
?>


Thanks
H
havex 64
April 30 2017, 08:21 #367606
Hi Bob,

I have checked every section and removed the custom code, but I still have that issue whenever the input_vars reach close to 5000!

I have also tried changing php version from 7.1 to 5.6. But the issue persisted!

Does it mean that chronoforms can't handle long form?

Thanks
admin 30
April 30 2017, 08:46 #367607
Hi havex,

I think that something on your server is resetting the post data, this may be some security module like sohusin or any alternative, can you ask your host admin about this ? or you can check the server logs.

Best regards,
Max
H
havex 64
April 30 2017, 09:04 #367608
Hi Max,

I am working on this form using Xampp. After many tries, I have also tried it on my server.
The issue persisted in both cases!

Hamid
admin 30
May 01 2017, 21:10 #367651
Hi Hamid,

Please check the post_max_size config and max_input_time, can you increase them on your local server and test again ?

Best regards,
Max
C
CaptnK 31
May 02 2017, 02:22 #367654
We have the same issue.

max vars set to 15,000
post_max_size increased from 8mb to 64mb
max_input_time increased from 60 to 90

We cannot add a text field after the form reaches 3859 vars. The form is wiped out in the attempt - all fields disappear from the form and cannot be recovered.

Do you have any suggestions as to how we might address this problem?

Best regards
admin 30
May 02 2017, 07:20 #367656
Hi CaptnK,

what about the other form sections like "events", general settings..etc, their data is kept or also gone ?

Best regards,
Max
C
CaptnK 31
May 02 2017, 09:25 #367657
Hi Max,

Everything else is retained. The form alone disappears.

Cheers,
CaptnK
admin 30
May 02 2017, 12:48 #367666
Hi CaptnK,

Please try to have dummy locales and permissions, those are retained ?

Best regards,
Max
C
CaptnK 31
May 02 2017, 21:59 #367682
Hi Max,

Yes, locales and permissions are retained.

Cheers,
CaptnK
C
CaptnK 31
May 06 2017, 12:48 #367830
Hi Max,

Any progress on this issue? This is a show stopper for us.

Best Regards,

CaptnK
admin 30
May 06 2017, 13:09 #367832
Hi CaptnK,

Please send me a message using the "Contact us" page because I will need to test this and/or have a form backup file to check here.

Best regards,
Max
admin 30
May 14 2017, 20:46 #368158
 1
 Answer
Hi,

The solution to this problem in v6 is to change the "views" field type in the #__chronoengine_forms6 database table to "longtext", this should be the default type starting from version 6.0.5 though.

Best regards,
Max
Gatsman 297
May 15 2017, 10:00 #368168
I am having a first look at v6 and rebuild one of my v5 forms and i also have this problem, but changing the views to LONGTEXT did not solve it (my MAX VARS 328/1000).
First it happened and deleted, in the Designer section, 2 custom CSS & HTML blocks that then when on and saved them with no problem on another try, now it happens in the Setup section.
Let me know if you need more info or access to check it, i am at a point where i can recreate the error quite easy.