• Resolved El Pablo

    (@el-pablo)


    On our website we have 2 custom user roles (free_account & premium_account), which capabilities are set with the Members plugin.

    Both user roles can add ‘listings’ (= a custom post type) via the frontend. This has been working fine for 4 years, but since last week those specific user roles can’t upload images anymore. They receive the error message ‘An error occurred in the upload. Please try again later.’. Both user roles have been granted to upload files though.

    All other user roles don’t have this issue (admin, editor, author, contributor, …). They can still upload files without any problem.

    I tried a couple of things to fix the problem:

    • increasing file size upload
    • checking file permissions
    • increasing php memory
    • disabling plugins
    • disabling Wordfence & replacing the .htaccess file

    But unfortunately without any results.

    What can I do the fix the issue? Maybe adding some custom code to grant extra capabilities?

    • This topic was modified 1 year, 1 month ago by El Pablo.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi El Pablo,

    Do these roles have Upload Files permission granted in the Media tab when you edit roles? If they do, can you check PHP log and see if there are more details about those errors?

    Best

    Thread Starter El Pablo

    (@el-pablo)

    Hi Caseproof

    These roles have granted permission in the Media tab. Very strange, but there is nothing to see in the php error logs, neither in the wp logs, neither in the console.

    Regards
    Pieter

    Plugin Author Caseproof

    (@caseproof)

    Could you disable Members plugin temporarily and see if this issue persists for those users?

    Best

    Thread Starter El Pablo

    (@el-pablo)

    Hi Caseproof

    I did that and the issue still persists, so the issue is not related to the Members plugin.

    Regards
    Pieter

    Plugin Author Caseproof

    (@caseproof)

    Thank you for the update. I’m afraid that you will need to contact your hosting provider or developer to resolve this.

    Best

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Users with custom user role can’t upload images anymore’ is closed to new replies.