Support

Account

Home Forums Bug Reports Add Image button javascript undefined error

Solved

Add Image button javascript undefined error

  • I have a repeater field which holds a few Image fields, and when I add a new row, then click the new “Add Image” button, I get this JS error.

    Uncaught TypeError: undefined is not a function acf-input.min.js?ver=5.2.0:1

    I’m on WordPress 4.1.1 and ACF Pro 5.2.0, which are both the latest at this time.

  • The line in question in the unminified code is filters.refresh();
    on line 4527

  • I wrapped it in a try catch and the image picker came up, so crisis averted for now, but I bet that code was meant to do something important right?

  • Same issue for me, also on a Image Upload Field in a Repeater section.
    Hey ACF team, please provide a fix.

  • Same issue for me as well –

    WP 4.1.1
    ACF Pro 5.2.0
    Theme: Formation

    Thank you,
    -R

  • I found that in my case this was related to a conflict with the plugin Media Library Assistant. I had to rollback to ACF Pro 5.1.8 to make it work again.

  • I’m using media library assistant too. ACF developers, can we get a JavaScript fix for this? Seems like it must be an accidental global variable being overwritten or something.

  • Hi guys

    I’ve just released v5.2.1 to fix this issue

    Sorry for the frustrating bug

    Thanks
    E

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

You must be logged in to reply to this topic.