I am getting this error when clicking on gallery button to upload images using normal user
Uncaught TypeError: Cannot read property ‘query’ of undefined
at Object.new_media_frame (acf-input.min.js?ver=5.6.7:2)
at Object.popup (acf-input.min.js?ver=5.6.7:2)
at Object._add (acf-pro-input.min.js?ver=5.6.7:1)
at HTMLAnchorElement.<anonymous> (acf-input.min.js?ver=5.6.7:1)
at HTMLDocument.dispatch (jquery.js:3)
at HTMLDocument.r.handle (jquery.js:3)
Having the same issue when trying to implement form on front-end. Everything works ok, if I’m logged in (as admin, haven’t tried other user types). But, when trying to upload images while not being logged in is generating above mentioned error.
As I see it, it’s a WordPress isssue – if I grant access for anonymous useres to upload media, then it works. In my case I require users to register as contributors and allow contributor role users to upload media.