Support

Account

Home Forums Bug Reports Not able to add media using ACF

Solving

Not able to add media using ACF

  • Hello, I am facing issue while click on add image button. I am not able to upload image (after click on add image media is not opening) When I click on ACF image button field I am getting the error in console i.e.

    acf-input.min.js?ver=5.9.9:1 Uncaught TypeError: wp.media.query is not a function
    at n.addFrameStates (acf-input.min.js?ver=5.9.9:1)
    at n.initialize (acf-input.min.js?ver=5.9.9:1)
    at n.t (acf.min.js?ver=5.9.9:1)
    at n.acf.Model (acf.min.js?ver=5.9.9:1)
    at n [as constructor] (acf.min.js?ver=5.9.9:1)
    at new n (acf.min.js?ver=5.9.9:1)
    at Object.acf.newMediaPopup (acf-input.min.js?ver=5.9.9:1)
    at n.selectAttachment (acf-input.min.js?ver=5.9.9:1)
    at n.onClickAdd (acf-input.min.js?ver=5.9.9:1)
    at n.<anonymous> (acf.min.js?ver=5.9.9:1)
    addFrameStates @ acf-input.min.js?ver=5.9.9:1
    initialize @ acf-input.min.js?ver=5.9.9:1
    t @ acf.min.js?ver=5.9.9:1
    acf.Model @ acf.min.js?ver=5.9.9:1
    n @ acf.min.js?ver=5.9.9:1
    n @ acf.min.js?ver=5.9.9:1
    acf.newMediaPopup @ acf-input.min.js?ver=5.9.9:1
    selectAttachment @ acf-input.min.js?ver=5.9.9:1
    onClickAdd @ acf-input.min.js?ver=5.9.9:1
    (anonymous) @ acf.min.js?ver=5.9.9:1
    i @ jquery.min.js?ver=3.5.1:2
    dispatch @ jquery.min.js?ver=3.5.1:2
    v.handle @ jquery.min.js?ver=3.5.1:2

    My Current wordpress version: 5.7.2

  • Make sure that you have the most current versions of WP and ACF installed. Make sure that you have cleared your browser cache. If the condition persists you might have a corrupt JS file, try reinstalling ACF. Also make sure that it’s not a plugin conflict by deactivating everything else. You might also have a JS conflict in the theme. Be sure to clear up any JS errors and warnings that happen before this error.

  • I have the most current versions of WP and ACF, I found one more thing that I am using “TOOLSET” plugin when I deactivate this than ADD Image working properly but to activate the “TOOLSET” again the media upload not working.

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

You must be logged in to reply to this topic.