• forbiddendarkphoenix@gmail.com

    (@forbiddendarkphoenixgmailcom)


    Hi we recently upgraded to 4 and straight after, even with installation of the next gen gallery, my authors and editors are having issues being able to upload image through the standard media adding in post.

    It seems anyone not admin who post cant ads pictures into post. Ive tested this with test accounts at all ranks, and only administrators can upload images without issue, everyone else get this message:

    “Error Bryan.png Sorry, this file type is not permitted for security reasons. “

    Now while that’s real nice security wise, I don’t want to have to log in and add pictures on behalf of editors and author who should have this feature!

    I have read up on countless post where no one was able to upload pictures, but this issue seems to be confined to everyone but admins who have no issues.

    Our website is http://kimnsarah.co.uk

    any help appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • It sounds like something, a plugin is modifying the ‘roles’ for your users since you say it happened after upgrading to 4.

    Check your plugins to see if any of them might have a reason to do that?

    Otherwise.

    When you say “authors” do you mean the contributor role?

    function add_theme_caps() {
        $role=get_role( 'contributor' );
        $role->add_cap( 'upload_files' );
        $role->add_cap( 'edit_published_posts' );
    }
    
    add_action( 'admin_init', 'add_theme_caps');

    This code here allows contributors to upload images and edit their own posts. It’s never been default to allow contributors to upload images.

    You would add it to your functions.php of your child theme, and/or main theme if no child theme.

    Thread Starter forbiddendarkphoenix@gmail.com

    (@forbiddendarkphoenixgmailcom)

    Actually no, I haven’t added any permissions. the bog standard role are Administrator, Editor, Author, contributor and subscriber.

    The primary review author and I keep admin role, the next staff member gets Editor, adult reviewers get author and under 18’s get contributor (as they actually post via the admins and get reassigned as post authors)

    Editor AND Authors could upload on 3 before, I imported nothing but posts into a fresh install of 4.

    Other than the gallery we have never needed and additional role plugin, and even when I give them permission on nextgen they cant.

    I want editors and authors to upload their own images like before, especially as “admin” role scares them.

    Use a role modifying plugin to see what rights individual people have to be sure that they don’t have upload rights.

    https://wordpress.org/plugins/user-role-editor/

    Like the one linked.

    There are a plethora of others to check roles and assign capabilities, check them out find the one that will work for you to determine why those roles are not being used as you think they should be.

    Thread Starter forbiddendarkphoenix@gmail.com

    (@forbiddendarkphoenixgmailcom)

    I tried that one last night, even when forced it didnt work

    Then that’s a positive that some plugin or something code wise is modifying the roles.

    Disable all plugins and try, switch themes and try .. narrow it down.

    Thread Starter forbiddendarkphoenix@gmail.com

    (@forbiddendarkphoenixgmailcom)

    no i missed a tick box, its working now thank you!

    Thread Starter forbiddendarkphoenix@gmail.com

    (@forbiddendarkphoenixgmailcom)

    I actually disabled every plug in – the plug in you linked me fixed it

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

The topic ‘Uploading images issue for non admins’ is closed to new replies.