Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Jon Brain

    (@brainjonbrain)

    The problem was related to the user capabilities. User needed to be an Editor in order for the dropzone to work correctly.

    Thanks,
    Jon

    I need to make it work in frontend with PrivateContent – Multilevel Content Plugin (10k sales on codecanyon) that DON’T use wordpress users, so no wp-admin is loaded.
    ACF frontend forms works like a charm, while ACF Dropzone give me this error in javascript console: “Uncaught ReferenceError: wp is not defined”

    Any suggestions?

    Thanks

    Hi @brainjonbrain ,

    I have the same issue as @rovente .
    The users who are at the level of subscribers must upload their documents.
    However as you’ve stated it doesn’t work of users without editor rights.
    Do you know which capabilities within editor are needed, so I can assign those to the users? Please advize.

    Regards,

    Mosche

    Update!

    Hi @brainjonbrain & @rovente
    The capability that is needed for this to work for users is upload files.
    @rovente You can use a plugin such ast User Role Editor or similar plugin to do this.
    And Voila!

    Special thanks to the maker of this plugin.

    Regards,

    mosche

    Thanks @mosche,
    but my case is different, i DON’T use wordpress users sistem, I can’t give wordpress roles to non wordpress users, since I manage memberships with “PrivateContent – Multilevel Content Plugin”, moreover no wp-admin is loaded in my frontend users templates, then missing js.

    So my question is open,
    wait for suggestions,
    thanks

    Hi @rovente ,
    Just throwing out suggestions, hoping it would be helpfull.
    Did you try my suggestion though?
    I built my own front-end for my customers.
    And adding the rights to upload did solve the problem for me. On the front end.
    If it really doesn’t solve the problem you’re facing.
    At least we tried.

    Regards,

    Mosche

    Thread Starter Jon Brain

    (@brainjonbrain)

    In the end I abandoned using Dropzone because the project ran out of time/money. I may come back to it at a later date. I suspect the point @mosche makes about user roles (and especially how they use AJAX) is on the money – and if I do come back to Dropzone, this’ll be my first stop.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Dropzone fails with JavaScript error when using on site front-end’ is closed to new replies.