• Resolved ecronik

    (@ecronik)


    Hey guys,

    I have an issue with above named roles not being able to upload media (Editors can). They always get this error when trying:

    File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.

    In the plugin I have activated for them:

    delete_posts ; edit_posts_ moderate_comments ; read ; read_private_pages ; read_private_posts ; unfiltered_html ; unfiltered_upload ; upload_files

    With my Hoster I can edit stuff like that in the .htaccess – this is what I have so far (tried php54 as well):

    AddHandler php56-cgi .php
    php_value memory_limit 256M
    php_value max_input_vars 10000
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase //
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . ///index.php [L]
    RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
    RewriteRule .* – [F,L]
    </IfModule>
    <IfModule mod_expires.c>
        ExpiresActive on
    
        ExpiresByType image/jpg "access plus 1 month"
        ExpiresByType image/jpeg "access plus 1 month"
        ExpiresByType image/gif "access plus 1 month"
        ExpiresByType image/png "access plus 1 month"
    </IfModule>
    
    # END WordPress

    Has anybody got an idea how to fix it?

    Thanks,
    eC

    https://www.ads-software.com/plugins/user-role-editor/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    As editor can upload files I suppose that an issue is not related to the PHP/Apache level.
    It’s enough to add ‘upload_files’ to the role to start upload files under that role in general.
    Try to deactivate all plugins temporally and re-test upload under Author role, for example. Some plugin may set additional restrictions for the upload operations.

    Thread Starter ecronik

    (@ecronik)

    Hey,

    I found the plugin – it is caused by ‘WP User Avatar’. Replaced it with ‘Basic User Avatars’ and it seems to work with that.

    Thanks for your help!

    Cheers,
    eC

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contributor/Writer/Author can't upload media’ is closed to new replies.