• Hi,
    I want my subscribers to be able to upload a profile picture on my memberpress site. I followed this tutorial:
    https://docs.memberpress.com/article/300-how-to-add-user-profile-image-tab-to-the-account-page

    It works when I’m logged in as an admin, but not as a subscriber.

    I already tried to give the wp role ‘subscriber’ more capabilities like this:

    if ( current_user_can('subscriber') && !current_user_can('upload_files') )
    add_action('admin_init', 'allow_subscriber_uploads');
    function allow_subscriber_uploads() {
    $subscriber = get_role('subscriber');
    $subscriber->add_cap('upload_files');
    }

    but this didn’t work either. What am I doing wrong?

    The memberpress support does not know what the problem is either

    Best

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jochen Fuchs

    (@jochen-fuchs)

    “Allow Contributors & Subscribers to upload avatars” is checked too.

    And I realized right now that the Admin is working because it is using the wp media upload form.
    The browser fiel-uploader is not working

    • This reply was modified 2 years, 3 months ago by Jochen Fuchs.
    Thread Starter Jochen Fuchs

    (@jochen-fuchs)

    The Problem is connected to Yoast SEO. When Yoast is activated the upload stops working. Im trying to figure it out, any help is appreciated

    We are having the exact same issue between One User Avatar, Yoast SEO, and Memberpress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘subscribers not able to upload’ is closed to new replies.