Home › Forums › Backend Issues (wp-admin) › Cannot read property 'map' of null
Hi,
I’m using ACF Pro on many client sites but on one particular (running latest WordPress and plugins) there is a problem on pages with repeater fields. It’s possible to duplicate the fields but all the fields inside are semi-broken and whatever input is created is not saved and discarded as soon as the update goes through and the page reloads.
In the console I’m getting this error:
Uncaught TypeError: Cannot read property 'map' of null
at n.addRules (acf-input.min.js?ver=5.8.3:3)
at n.<anonymous> (acf-input.min.js?ver=5.8.3:3)
at Array.map (<anonymous>)
at n.setup (acf-input.min.js?ver=5.8.3:3)
at n.acf.Model (acf-input.min.js?ver=5.8.3:1)
at new n (acf-input.min.js?ver=5.8.3:1)
at n.acf.Field.getConditions (acf-input.min.js?ver=5.8.3:3)
at acf.Model.onNewField (acf-input.min.js?ver=5.8.3:3)
at u (acf-input.min.js?ver=5.8.3:1)
at Object.i (acf-input.min.js?ver=5.8.3:1)
addRules @ acf-input.min.js?ver=5.8.3:3
(anonymous) @ acf-input.min.js?ver=5.8.3:3
setup @ acf-input.min.js?ver=5.8.3:3
acf.Model @ acf-input.min.js?ver=5.8.3:1
n @ acf-input.min.js?ver=5.8.3:1
acf.Field.getConditions @ acf-input.min.js?ver=5.8.3:3
onNewField @ acf-input.min.js?ver=5.8.3:3
u @ acf-input.min.js?ver=5.8.3:1
i @ acf-input.min.js?ver=5.8.3:1
i.doAction @ acf-input.min.js?ver=5.8.3:1
acf.newField @ acf-input.min.js?ver=5.8.3:1
acf.getField @ acf-input.min.js?ver=5.8.3:1
(anonymous) @ acf-input.min.js?ver=5.8.3:1
each @ load-scripts.php?c=1…e,utils&ver=5.2.2:2
each @ load-scripts.php?c=1…e,utils&ver=5.2.2:2
acf.getFields @ acf-input.min.js?ver=5.8.3:1
r @ acf-input.min.js?ver=5.8.3:1
u @ acf-input.min.js?ver=5.8.3:1
i @ acf-input.min.js?ver=5.8.3:1
i.doAction @ acf-input.min.js?ver=5.8.3:1
(anonymous) @ post.php?post=170&action=edit:2260
I’ve tried both the regular ACF and ACF Pro, from version 5.7.X to 5.8.3 and the issue is the same. The page is not running many third party plugins and it built with traditional templates (no page builders and stuff like that).
Can you confirm whether this is an ACF issue or not?
Thanks,
Jonathan
Problem solved. Somehow a subfield of a repeater field has gotten a conditional logic which was enabled to a parent field even as the content was blank. I’m sure the customer has gotten in there somehow and messed around. Thanks!
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!
2022 was a big year for Advanced Custom Fields, with more capabilities, a new generation of ACF Blocks, a refreshed UI, and a new home. Our year in review post looks at advancements we’ve made and offers a glimpse of the future.
— Advanced Custom Fields (@wp_acf) January 6, 2023
https://t.co/HahJUCcyH4
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.