Change WordPress user roles and capabilities Forums Bug Reports Can’t add an image using Divi

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #8901
    [email protected]
    Participant

    I have set up a user role and the website uses Divi. When one person from a role I created goes to edit a page, they can add the Divi Image module but they can’t select the image to use. it just keeps the default blank image that Divi uses.

    #8902
    Vladimir
    Keymaster

    Is ‘upload_files’ granted to this role?
    Test if ‘edit_posts’, ‘edit_published_posts’ will help, also.
    Look for the JavaScript error messages in the browser JS console after trying to upload image via Divi Image module.

    #8903
    [email protected]
    Participant

    I am getting this error.
    react-dom.production.min.js?ver=16.14.0:32 Uncaught Error: Template not found: #tmpl-media-modal
    at n.template (wp-util.min.js?ver=6.8.3:2:371)
    at n.render (wp-backbone.min.js?ver=6.8.3:2:2895)
    at n.attach (media-views.min.js?ver=6.8.3:2:22663)
    at n.open (media-views.min.js?ver=6.8.3:2:23046)
    at s.<computed> [as open] (media-views.min.js?ver=6.8.3:2:31725)
    at k.value (bundle.modals.817732e4.js:2:832609)
    at w.value (bundle.js?ver=4.27.4:2:2161072)
    at g.value (bundle.js?ver=4.27.4:2:613788)
    at Object.ki (react-dom.production.min.js?ver=16.14.0:176:167)
    at ji (react-dom.production.min.js?ver=16.14.0:13:49)

    #8904
    [email protected]
    Participant

    And to answer your questions, yes, upload_files is granted along with edit_posts adn edit_published_posts

    #8905
    [email protected]
    Participant

    As an additional test, I duplicated the role I am trying to use and then added every role, and it still doesn’t work.

    #8906
    Vladimir
    Keymaster

    Is it applicable for you provide admin access in order I can look at the issue on-line?
    If Yes, send credentials to support [at-sign] role-editor.com

    #8907
    [email protected]
    Participant

    You should be getting the email now for access.

    #8908
    [email protected]
    Participant

    station_team is the role I need this for.

    #8909
    Vladimir
    Keymaster

    Got it, thanks. What user role to test?

    #8910
    [email protected]
    Participant

    Station_team

    #8911
    Vladimir
    Keymaster

    Thanks. See now. I will test and search the solution.

    #8912
    Vladimir
    Keymaster

    Try this workaround:
    1) Go to Users->User Role Editor, select station_team role and grant temporally the ‘edit_theme_options’ capability to this role.
    2) Go to admin menu Divi->Role Editor, select ‘station_team’ role and turn ON the “Theme builder” option at the top.
    3) Go to Users->User Role Editor, select station_team role and revoke the ‘edit_theme_options’ capability from this role.

    #8913
    [email protected]
    Participant

    That is working for my test account. I have asked my customer to try it now with hers. I will let you know but it seems like that should fix it.

    #8914
    [email protected]
    Participant

    Yes that worked. Thanks for the help.

    #8915
    Vladimir
    Keymaster

    Excellent! Thanks for the feedback.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.