• My client’s users are unable to upload/change their profile pictures. I recently updated the WordPress and the UM to their latest versions due to the users were having trouble with changing their profile pictures – they had been able to upload them before. After the update the upload still fails and the pictures that were previously there have also disappeared and replaced by the default avatar.

    The upload dialog opens fine and lets you choose the photo to upload. After the upload is finished the dialog displays an error: “ERROR: Not Acceptable”.

    Wordpress version is 5.4.1 and UM version is version 2.1.5.

    • This topic was modified 4 years, 6 months ago by supermurmeli. Reason: Typo
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @supermurmeli

    It looks like a server-side configuration issue.

    Could you please try the solution in the link?
    https://www.tipsandtricks-hq.com/apache-mod-security-update-how-to-fix-error-406-or-not-acceptable-issue-259

    I suggest that you contact the hosting provider to assist you with this issue.

    Regards,

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @supermurmeli,

    Do you have any image optimization plugins installed?
    Please check this doc on how to troubleshoot image uploads.
    Please also try to do a quick conflict test so we can rule out any conflicts with your theme or one of your plugins and see if this issue goes away.

    Regards.

    Thread Starter supermurmeli

    (@supermurmeli)

    Thank you both for replies. I’m already using the Twenty-Sixteen – or more specificly a child theme for it. I’ve only done some light layout tweaks. Also no other image optimization plugins installed.

    It does look like a server-side config issue. When loading the members list I get a list of 403 errors in the inspect log for each thumbnail that the browser is trying to load. The permissions for the UM upload folder should be set correctly. The site has been running just fine for a few years so I guess the hosting company has changed something.

    I’ve also seen the 406 error in the log when loading the profile page. So I guess I’ll try following the guide @champsupertramp posted and see if it leads somewhere. After that I guess I need to contact the service provider.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @supermurmeli

    Let us know when you’ve resolved the issue. We’d like to know your solution so it can help others in this forum. Thank you

    Regards,

    Thread Starter supermurmeli

    (@supermurmeli)

    So – I ended up working with the service provider. We managed to get the thumbnails in the lists working – it was a simple rights issue. However – unlike the guide here: https://docs.ultimatemember.com/article/114-photo-uploads-not-working – the UM uploads directory needed to be 755 for the thumbnails to appear.

    The upload issue still remains. The UM upload dialog still displays “ERROR: Not Acceptable” after the upload finishes and the image never appears. The browser logs an error “…../wp-admin/admin-ajax.php 406 (Not Acceptable)”

    Tried disabling all the other plugins and reverted to the Twenty Sixteen theme. Tried the various .htaccess files instructed in the first comment of the thread. The tech at the hosting company ran out of ideas and so did I. Not really sure what to try next.

    I’ll keep trying. Not eager to do the whole uninstall/reinstall routine as I’m worried about loosing all the member data.

    • This reply was modified 4 years, 6 months ago by supermurmeli.
    Thread Starter supermurmeli

    (@supermurmeli)

    Any suggestions what to try next? Referring to the upload issue – still not able to upload or change an existing profile photo. I’m running out of ideas.
    @champsupertramp @ultimatemembersupport

    • This reply was modified 4 years, 6 months ago by supermurmeli.
    Thread Starter supermurmeli

    (@supermurmeli)

    After trying to upload and failing at it the browser logs “../wp-admin/admin-ajax.php 406 (Not Acceptable)” and the UM dialog simply shows “ERROR: Not acceptable”.

    That error expanded shows the following:

    send	@	jquery.js?ver=1.12.4-wp:4
    ajax	@	jquery.js?ver=1.12.4-wp:4
    (anonymous)	@um-jquery-form.min.js?ver=2.1.5:1
    X.fn.ajaxSubmit	@um-jquery-form.min.js?ver=2.1.5:1
    w	@	um-fileupload.min.js?ver=2.1.5:1
    m	@	um-fileupload.min.js?ver=2.1.5:1
    (anonymous)	@um-fileupload.min.js?ver=2.1.5:1
    dispatch	@jquery.js?ver=1.12.4-wp:3
    r.handle	@jquery.js?ver=1.12.4-wp:3

    Does this make sense to anyone?

    • This reply was modified 4 years, 6 months ago by supermurmeli.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @supermurmeli

    Could you please ask your hosting provider to temporarily disable mod_security and see if the issue still occurs with the uploader?

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @supermurmeli

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards,

    Thread Starter supermurmeli

    (@supermurmeli)

    I’m currently waiting for a reply to my request for disabling the mod_security. I’ll post the results on this thread if there are any.

    Thanks for all the help so far @champsupertramp !

    Thread Starter supermurmeli

    (@supermurmeli)

    So – I finally got a reply from the hosting company. They won’t disable the mod_security but were kind enough to check their logs for the error.

    They replied:
    It appears that multipart/form-data of the request is not valid and is therefore dropper -> [msg “Failed to parse request body: Multipart parsing error: Multipart: Invalid part header (colon missing): undefined\x0d\x0a”
    and that the request has an empty part -> Content-Disposition: form-data; name=””
    undefined

    I have no clue as to what any of that means. Any ideas? @champsupertramp @ultimatemembersupport

    Thread Starter supermurmeli

    (@supermurmeli)

    *Bump*

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Unable to upload profile picture – now also previous pictures are missing’ is closed to new replies.