• Resolved lgreenway

    (@lgreenway)


    Hi there,

    I’ve had Ultimate member installed and working for quite some time however now
    I’ve been experiencing issues with being able to upload member profile images and cover images. Oddly enough it doesn’t occur on the staging site which is on the same server and using identical set-up for plugins and theme.

    Basically a user can attempt to upload, but the image is never registered. I’ve followed all of the recommendations as per this article https://docs.ultimatemember.com/article/114-photo-uploads-not-working and still no luck.

    My hosting company suggested this might be the error in this file wp-content/plugins/ultimate-member/core/um-files.php :

    if ( $allow_frontend_image_uploads == false && !is_user_logged_in() && ( $key == ‘profile_photo’ || $key == ‘cover_photo’ ) ) {
    wp_die( __(‘Unauthorized to do this attempt.’,’ultimate-member’) );
    }

    They checked the privileges when logged in as an Admin and should’ve been able make a change to the user images; however, an error occurs instead. The problem is that “!is_user_logged_in()” returns “true”. For some reason, at the time of the photo upload operation, the plugin thinks a user is not logged in.

    Even if I try to deactivate and then reactivate the “ultimate-member” plugin it still produces the same result.

    Any thoughts? Any help would be welcome!!

    • This topic was modified 7 years, 6 months ago by lgreenway.
  • The topic ‘Profile & Cover Image Upload Issues’ is closed to new replies.