WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Access Manager
[resolved] Error message for contributors who upload a file (15 posts)

  1. John Bee
    Member
    Posted 4 months ago #

    Hello,

    Thank you for your very good plugin Vasyl !

    Using your plugin, i get the "upload file" permission to the "contributors", but now they have a error message when they upload file : " This file is empty (..) " and tell something about php.ini and max_size etc ... but all is right in my php.ini ... and all others permissions ("autors", "editors", ...) don't have this message.

    So i give "publish_post" permission to the "contributors" and now they can upload ... but it's not the solution because "contributors" should not publish post for this use case.

    Thx you,

    Best

    https://wordpress.org/plugins/advanced-access-manager/

  2. WP AAM
    Member
    Plugin Author

    Posted 4 months ago #

    Hi John,
    This is weird behavior but sometimes it relates to internal settings. So far it is hard for me to understand why Publish Post capability has impact on file uploading feature.
    I would try to create a new role and inherit capabilities from Editor Role. Then uncheck all capabilities that are not necessary.

    Try and let me know the result.

    Regards,
    Vasyl

  3. John Bee
    Member
    Posted 4 months ago #

    Hello Vasyl,

    Thank you for your answer and for helping me.

    I have done what you advice me to do. I have create a new role with Editor capabilities and uncheck one by one until "Publish post" capability ... witch is still bugging "upload file" capability.

    I don't know what to do,

    Best,

  4. WP AAM
    Member
    Plugin Author

    Posted 4 months ago #

    Hi John,
    This is weird, haha. I'll check the core to see why this might be a case and will come back to you soon.

    Regards,
    Vasyl

  5. John Bee
    Member
    Posted 4 months ago #

    Hello Vasyl,

    Thank you !

    So i wait for you ;)

    Best,

    John

  6. John Bee
    Member
    Posted 2 months ago #

    Hello Vasyl,

    Some news about this bug ?

    Can you tell me if AAM "plus" allow to restrict publishing post for certain roles AND for certain categories ?
    For exemple i would like to disallow publishing post in category "A" for a first group of contributors, and allow it for a second group.
    Is it possible ?

    Have a nice day !

  7. WP AAM
    Member
    Plugin Author

    Posted 2 months ago #

    Hi John Bee,
    I was not able to reproduce your scenario. This looks like really weird combination of settings and plugins. Still will big inside to understand what might be wrong.

    There is a capability Publish Posts that does not allow to publish any draft or pending post but AAM does not allow to control this behavior on category or post level. We had this restriction in legacy 1.x versions but excluded it from 2.x. So I believe it might be good to return it back.
    This will be a part of AAM Plus Package and will announce about it on our twitter channel.

    Regards,
    Vasyl

  8. Kevin Trye
    Member
    Posted 1 month ago #

    John, i have this exact same problem and no fix. Perhaps we should swap notes on the wp version and plugins we're using? See if there's something common.

  9. John Bee
    Member
    Posted 1 month ago #

    Hello Kevin,

    Yes, thank you for cooperating on this issue.

    I'm using the following plug-in (latest versions as WP):
    - Advanced Access Manager
    - Akismet
    - Broken Link Checker
    - Digg Digg
    - Google Document Embeder
    - Google xml Site Map V3 for qtranslate
    - Mailjet for WordPress
    - Wordfence
    - WP User Avatar

    And the Theme :
    - Striking Multifelx Responsive by Kaptilin

    Some comments :
    - I'have done some testing, and this "bug" is still busy with all plugin desactivated except for AAM.
    - In the basic WP (without AAM), contributors are not allowed to upload files AND can't publish.
    - So i suppose WP is considering you can't Upoad Files if you can't publish post.
    - So when i define "Upload Files" without "Publish post" with AAM, i suppose there is a conflict with WP basics contributors capabilities.

    I suppose there is some trouble between basics WP core capabilities and AAM possibilities ?

    Best regards,

  10. Kevin Trye
    Member
    Posted 1 month ago #

    Hi John,
    It could be a core issue. Another forum guy with a similar problem ended up modifying one of the wp-includes javascript files! I don't want to do this. We run a custom genesis theme, and the only plugins that I have that are similar to yours are akismet, wordfence and the most likely one could be WP User Avatar? I will disable these and see if that fixes it.

  11. Kevin Trye
    Member
    Posted 1 month ago #

    ps. I used user role editor and some custom functions to set the capabilities, not AAM.

  12. Kevin Trye
    Member
    Posted 1 month ago #

    Looks like the WP User Avatar is the problem plugin.

  13. John Bee
    Member
    Posted 1 month ago #

    Ok, thank you for investigate.

    I'll test it and let you know the result after i solve another misconfiguration with AAM.

    Best,

  14. Kevin Trye
    Member
    Posted 1 month ago #

    If you change some of the avatar default settings for larger files seems to help and reduce some of the errors.

  15. WP AAM
    Member
    Plugin Author

    Posted 3 weeks ago #

    Hi guys,
    Thanks for investigation and updates. This helps a lot!

    Regards,
    Vasyl

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.