I just updated a client site to ACF Pro and we’re now unable to save a particular page that has a significant amount of repeater fields. My understanding was that ACF 5 was supposed to correct this, so I’m wondering if there is an extra step I need to take to move the meta data into the new schema?
I don’t know if it helps, but I’m getting this error on the page that has lots of fields. Similar pages save without this error:
Uncaught TypeError: Cannot read property ‘length’ of undefined jquery.js?ver=1.11.0:2
(anonymous function) input.js?ver=5.0.0:5071
Thanks for the login details.
You don’t seem to have many ACF fields on the page, but you do seem to have many custom field entries in the WP custom field metabox.
These look like they are coming from an old repeater field with a name of
exhibitors. Does that sound correct?
If this old data is no longer needed, please delete all postmeta records for the post which start with
This will prevent WP from posting / saving un used data.
Hope that helps
I’m having a very similar issue. I’ve got a menu built out using a lot of custom fields and repeaters. Initially our issue in AC4 was that when you would click update it would take a long time to load then refresh and the new fields we had added would be gone. We upped max_input_vars and about every other PHP value I could think of.
So I was hoping the upgrade would fix our saving issue, but it seems to have cropped up a different one. Now when I try to save I get the same “Uncaught TypeError: Cannot read property ‘length’ of undefined” error in load-scripts.php. This seems to go away when I delete some data / fields, but crops back up when I try to add it back in. Any suggestions?
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.