Hello,
When using a Flexible Content field in ACF, which contains layouts that include Repeater fields, there is an issue where changing the order of the layouts in the WordPress admin interface results in the loss of data from the Repeater field within those layouts.
Environment:
Statement:
I wanted to provide an update regarding the configuration change I made in PHP. As recommended in the discussion thread found here: Thread Link, I adjusted the max_input_vars to 10000.
Unfortunately, despite making this adjustment, the issue of data loss when updating Flexible Content fields persists. The rows continue to disappear in the backend as mentioned in the thread.
Steps to Reproduce the Issue:
Create a Flexible Content field in ACF and add layouts that contain Repeater fields.
Populate data in the Repeater fields within the layouts.
In the WordPress admin interface, rearrange the order of the layouts within the Flexible Content field.
Save the changes.
Notice that the data in the Repeater fields has been erased.
Additional Information:
This issue leads to the loss of critical user data and can have a significant impact on their use of ACF.
Expectations: We expect that rearranging the layouts within the Flexible Content field should not result in data loss within the Repeater fields.
Thank you for considering this bug report and working towards its resolution. If additional information is required, please feel free to request it.
i have a repeater field , when the post have more that 106 rows i get 404 when trying to save… before i could save more that 100 rows (they have only a few filds inside)
when i run phpinfo i can see:
local. master
max_execution_time 10000 10000
max_file_uploads 20 20
max_input_nesting_level 256 64
max_input_time -1 -1
max_input_vars 20000 10000
memory_limit 1G 1G
i think i change this to this high values… what could it be ? i also tryed :
/**
* Increase ACF Repeater row limit
*/
function my_acf_repeater_settings( $field ) {
$field[‘max’] = 5000; // Change this value to your desired limit
return $field;
}
add_filter(‘acf/fields/repeater/settings’, ‘my_acf_repeater_settings’);
no luck .. my acf is Ver5.12.3 … can any kind soul help me? tanks
Hi,
I’m using ACF Pro Version 6.0.5 with WP 6.1. I have a Flexible Content field with 6 layouts in it. They display fine on the front end. When I create a 7th layout in the field I just can’t get that layout to display. It’s like I’ve reached a limit.
If I try and just display that 7th layout and not display layouts 1-6 it displays.
Go figure. 2 of the layouts use basic Repeaters if it matters.
I did see 1 issue in my php-fpm-error.log “server reached max_children setting (4), consider raising it”
I’m hosted on Pantheon with these setting in php.ini
with max_execution_time = 120
max_input_time = 900
max_input_vars = 10000
memory_limit = 256M
Any help appreciated!
Thanks
For one of WordPress’ core plugins, that this is not resolved is quite concerning. I didn’t even know it was a thing.
We have a multi-language multisite and flexible content fields disappear without any sense of consistency. We are not using particularly complicated page structures.
I have max_input_vars at 5000, our server admin is reluctant to up it any more.
Surely there should not be a limit on the number of fields available, or at the very least, some kind of warning. Page builders liek Elementor and even Gutenberg use far more variables than simple ACF compounds.
Why is this happening and is there any fresh thinking on the issue?
As soon as I create a new field in a group via the WordPress admin, a second field of type text is automatically created. The keys of the fields are “26017” and then “field_60efcd5f9a084”.
At the same time, when I click on update, I also lose the position where everything should be displayed. It resets itself to post. The Original Position it should be displayed on is an options page.
I have 204 Fields (Text fields + repeater) in this Group. And fieldnamens can be something like this “language_mybikes_modals_angebot_nicht_mehr_verfugbar_bodytext_start”.
So a very long name.
So i just googled für acf losing postion and came up with a solution to increase max_input_vars. It was 1000, then increase it to 3000 and my problems are gone.
Now my Question to this.
Can this really be the reason for the problems described.
Is there a way to determine how long the string (or how many vars) is that ACF produces at the moment I click on update.
And gives a recommended value for max_input_vars.
Probably in 99.9% of all cases the 1000 for max_input_vars is by far enough.
I have a series of ACF custom fields that are setup to show on the page edit screen if the page’s template is set to a certain template. When I create a new page, and go to the template dropdown to select my template, it makes my ACF fields appear in the edit screen. If I then add content to those fields and save the draft or ‘Publish’, I can refresh my edit screen and my content in my ACF fields doesn’t save. However, if I add the content again to the ACF custom fields, and save/update, the changes stick.
I tested a situation where I have an ACF custom field appear on the post type of ‘page’ and when I create a new page, add content to that custom field, save/publish and refresh, my custom field content is saved and isn’t lost like in my scenario described above.
I’ve disabled all plugins except ACF and it is still an issue. max_input_vars is set to 3000. ACF Pro and WP are both up to date
Hello,
I was in the process of creating a site for a client, everything was going fine but for some unknown reason I can no longer see / edit or create acf fields. I tried increasing max_input_vars to 19000 in my php.ini or in the .htaccess but it doesn’t change anything. I also tried to add in my function.php ‘add_filter (‘ acf / settings / remove_wp_meta_box ‘,’ __return_false ‘);’ but that doesn’t work either. When I inspect my console I have no javascript errors. I also deleted all my plugins except ACF but without result. And finally I deleted ACF and reinstalled via zip from the official website but still without success. Do you have a solution to suggest to me?