Home Forums Backend Issues (wp-admin) Cannot read property 'map' of null


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 (<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?


  • 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!

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Cannot read property 'map' of null’ is closed to new replies.