Home Forums ACF PRO ACF Gallery wokring only with admin permission


ACF Gallery wokring only with admin permission

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

    Is there any advice how to fix it?

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

  • @banesto … what method did you use to grant access to anonymous users? A plugin?

  • For anyone else who sees this, I added, for the relevant role, $role->add_cap(‘upload_files’)

    Thanks @banesto

  • Hi!

    Same problem here, is it possible to enable access to the upload media function without user registration?


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

The topic ‘ACF Gallery wokring only with admin permission’ is closed to new replies.