I have migrated the domain name, server, and database to the production server and everything works (gallery field, text field, everything) fine except for the Repeater Field. Every time I add a row and write something in it or update an existing tab, it deletes everything in the Repeater Field. After some debugging of act_update_value function in ACF, I found out that the $value field is sent as string(0) "" I don’t know what can be the issue. I updated the PHP configuration just in case to:
php_value max_input_vars 3000
php_value max_input_time 120
php_value max_execution_time 60
But that didn’t solve the problem either. In the development server the PHP parameters are half the numbers above and the repeaters work.
What can cause this issue? Why is the $value attribute is empty?
Hi all,
I’ve been using the ACF plugin for years now and it’s saved me hundreds of hours in development building complex websites. I never ran into any problems and am quite confident I will not do so in the nearby future.
I am currently working on a large client website that requires the use of the Flexible Content Field with a lot more layouts and fields than I’m used to integrate which is usually around 6 layouts with roughly 40-50 fields in total.
Right now I have successfully integrated 12 different layouts containing 129 fields in total. The fields are all of the “simple” type like text, color picker, textarea and WYSIWYG. I have not used any nested repeaters or nested Flexible Fields. Everything is working as expected both in front- and backend.
In the end I will most likely have a total of 16 different layouts that contain about 160 fields. I was wondering if anybody else has ever used this amount or more layouts & fields without any problems in saving/ updating/ retrieving data or having to make adjustments to the hosting environment.
I’m using ACF PRO 5.2.2 in WordPress 4.1.1 and have my max_input_vars set to 4000 and the post_max_size to 8M.
Thanks in advance for sharing your experience with this kind of large Flexible Content Field setup.
Best regards,
Ernst
Hi,
Wordpress 4.1.1 and ACF v4.4.1 here running on standard WAMP stack.
I use ACF for a very large and complex multi-lingual resource centre which organises documents and images by product codes. I use taxonomies for product codes of which there are around 7000!
I have an issue with ACF where it stops displaying fields in the backend after 3 have been defined, basically it just stops rendering completely without giving any PHP errors or warnings. It basically stops rendering on the ‘Filter from taxonomy’ text field on the third field. The fields I am defining are relationship fields on a certain post_type and filtered to an individual taxonomy value. The ‘Filter from taxonomy’ list is extremely large – many thousands of individual rows because of the number of different taxonomy values present.
It seems clear that I’m hitting some kind of resource limit but I have tinkered with my PHP.ini file, increasing the memory allocation to 6GB and adding:
max_input_vars = 50000
suhosin.get.max_vars = 50000
suhosin.post.max_vars = 50000
suhosin.request.max_vars = 50000
But nothing works! Clearly it’s making it rather difficult to manage my custom fields when the backend won’t render the interface.
Any help gratefully received!
Kevin
Hi,
I created the fieldgroup “Rahmenbedingungen” including five costum fields. All the same type etc.
But the 5th field “hallengroesse” is not shown in the frontend. For example:
http://handball-pro.de/passkontinuum-stossen/
I already added the code the .htaccess and created a php.ini:
php_value max_input_vars 3000
php_value suhosin.get.max_vars 3000
php_value suhosin.post.max_vars 3000
php_value suhosin.request.max_vars 3000
Thanks for your help.
Hey Guys,
I am having the same problem that a few people discussed about in the forum however we couldn’t find a solution.
We got to a point that the fields doesn’t save anymore.
We have a couple of Repeaters and Flexible Content all together in one of our Custom Post Types.
max_input_vars is on 500000 (Very large number) but still not working.
If i move the field up and down it gets saved however the last one it wont get saved at all and we need to include a couple of new ones.
Do we have any limits for repeater or flexible content being saved?
Anything else to make it work? Any magic? Please HELP!!!!!!
Details.
– WordPress – Version 3.8.4
– Advanced Custom Fields: Repeater Field – Version 1.1.1
– Advanced Custom Fields: Flexible Content Field – Version 1.1.1 |
Kind Regards,
Andre.
I am using flexible content type with repeaters nested within it.
I have a live site and a dev site. Dev is local and live is at HostGator. Both were working earlier and the client notified me that some items of content fell off on the live site. When I went in to troubleshoot I realized that the custom fields for the 9th item within the repeater is missing on the live site.
So I tried to add it back in and it saves but the new custom field won’t show. I feel like everything after 8 items is just falling off. The reason for that is I can edit something in the first item but anything below the 8th won’t stick.
I feel like the issue is something to do with config settings on live (although everything was working ok on the same servers) Here is what I have done to troubleshoot so far…I have access to the php.ini file and am verifying that my config changes are sticking by checking a phpinfo() file. I have ramped up all these settings: max_input_vars, post_max_size, max_execution_time, max_input_time, max_input_nesting_level, memory_limit
Hi,
We have been following a workflow where we manually create fields inside field groups on local, staging and then finally production.
Now, the server where live site was hosted earlier had increased value of max_input_vars so I was able to manage a lot of fields but now we are residing on a new server where the max_input_vars was at its default value of 1000.
I didn’t realize that and I tried adding a new field inside the field group, which lead to loss of some of the old fields in the field group. Now, I am trying to bring them back.
Its exactly setup the way it needs to be on our staging site but since that was setup manually, it has different field keys than what it would have on the live site. My understanding is that ACF uses field keys internally and its ok if they change till they are unique overall (or just field group?). But I just saw that post meta of pages have field keys saved there.
Not really sure what’s going on.
We eventually would like to move to a setup where we commit the PHP export of the field group so understanding how we can move the existing fields without impacting any saved data is important.
Using ACF 4.3.8
Hey Elliot,
Not sure if this is really practical, but would it be possible to do a check that we’re not submitting an ACF Form that will exceed the max_input_vars, and if so throw a warning and stop the form from submitting?
It could be a simple count of the number of fields (bonus points if you could get other fields on the page as well outside of ACF) to see if we’d be hitting that limit. I know it might not be possible to get an exact count (I think cookies are counted in the total for example), but close would be nice.
I just hit the limit in the ACF Field editor, which caused me to lose the last field, which happened to be a repeater. It’s not the end of the world when you lose a normal field since get_field should still be able to retrieve the value, but I think with a Repeater it checks back to the original field, which was gone. Oddly enough once I finally managed to increase the limit and recreate the field, the content didn’t reappear on the front page. I had to go into the post and hit save for it to show up, even though when editing the post I could see the content.
I think the number of fields was 47 if that helps.
Cheers!
Phill
Hi @elliot,
Just encountered a bug when saving values within a 2x repeaters and flexible content field. It says it saves fine, and appears to have saved. But then I left the options page (after saving), and then re-entered, and it didn’t actually save it.
Using Options, Flexible Content and Repeater plugins. Have tried disabling other plugins, just having ACF by itself – but didn’t change anything.
I’ve also tried flushing out post revisions, still no luck.
I’ve tried changing the PHP settings, including all of the below:
max_input_vars = 3000;
max_input_nesting_level = 128;
max_input_time = 300;
max_execution_time = 300;
post_max_size = 32M;
memory_limit = 300M;
But didn’t fix it unfortunately.
I will attach a private login example, so you can check it out.
Does anybody know a fix for this?
Kind Regards,
Matt
I need to build out a list of states as individual field groups. Everything was going swimmingly until I hit 25 and updated. For some reason the last five entries were gone. I added three more and hit update… back to 20…
http://i.imgur.com/rL4l8WV.png
I’ve set my max_input_vars to 3000, though it didn’t fix the issue.
These happen to be repeater fields — could that be the issue?
Are field groups limited to 20 entries? If so, how do I bump that up… I need at least 50…
Any help is appreciated, thanks 🙂
I’ve been putting together a page that needs 23 row from what I have set up for the flexible content field, but I’m getting stuck at 20. Once I have added a 20th row I’m unable to add any more rows. I can click to add a new row, but nothing shows up. I’m not getting any PHP errors. Before I had run into the max_input_vars issue, but that doesn’t seem to be the issue here.
I have a repeater that contains 3 sub-fields that I created months ago. I would like to add 1 more sub-field to the list. When I add the sub-field to the repeater, it shows up fine on my page to add content to it, however when I click on “Update” to save the page, the content disappears from the newly created sub-field and I get no data in the PHP.
I've tried changing my max_input_vars to 3000 which is more than enough and I still get the same results.
I've experienced this in the past and had to completely remove the repeater field and recreate the whole thing with different names to get it working again, but in this case I'm using the repeater in many different places and would like NOT to have to re-create all repeater fields.
Any help or suggestions?
Hi,
for a client I have to fix a problem. At the moment he can’t save more than 66 fields in an ACF-Group. I was researching a bit and found out, that one possible problem could be, that the max_input_vars in the php.ini is too low, so PHP rejects the POST-Values after 1.000 fields. I was checking and indeed the Form was sending more than 1.000 fields.
I first tried the .htaccess-Solution as described e.g. here:
http://support.advancedcustomfields.com/forums/topic/repeater-field-values-disappearing/
and in this blog post:
http://bullmandesign.com/quick-tips/too-much-of-a-good-thing
But, this produced an Error 500 because the machine is (as I found out) running as FastCGI. For people with this problem, check the possibilty of the user.ini:
http://php.net/manual/de/configuration.file.per-user.php
So I translated the .htaccess to the .user.ini and uploaded this file.
max_input_vars = 5000
max_input_time = 300
max_input_nesting_level = 128
max_execution_time = 300
post_max_size = 32M
<?php phpinfo(); ?> displays set the new values are set as local values for PHP now.
But unfortunatly still, after uploading and everything, I am not able to save more than these 66 fields. Now, I have no further idea, what to do. Does anyone has an suggesstion?
Thanks a lot!