You are currently viewing How To Fix HTTP Error When Uploading Avatar to Buddypress

How To Fix HTTP Error When Uploading Avatar to Buddypress

First off – Buddypress is awesome!

OK – are you struggling with an avatar or profile image upload HTTPS error on WordPress or Buddypress? I was! Well I setup Buddypress (plugin for WordPress) and it worked like a dream for several months. No problem uploading avatars (user photos) at all. I added rtMedia Restrictions plugin and it carried on working perfectly. Then I installed a plugin called Ewww Image optimiser plugin – and that’s when I noticed my problems with the Buddypress Avatar started. NOTE: I am not saying that is the cause – I will use this page as my investigative notebook – in the hope that someone else out there might find this particle useful when I do find the solution.

A wordpress not Buddypress problem

One thing I have discovered – is that this is most likely a WordPress installation and setup problem – as Buddypress simply utilises what is already installed in relation to Buddypress to achieve it’s image upload feature. So the software installed needs to be checked.

Intermittent image upload problem – upload sometimes works!

I have tried a lot of things – increasing upload size allowed in config files – upload/timeout time – but I still get reports from my members they are having problems uploading an image via the built-in file uploader – and only about 30% of my members on the Buddypress now upload avatar images successfully – the others end up  reporting HTTP error to me.

If you are using WORDFENCE PLUGIN here is your likely answers..

See these two great help and support articles from Wordfence team. It appears that the new PHP8 is a little too sensitive when it comes to protecting your site from Malicious file uploads. They say in brief – you can safely turn off one of the firewall file upload (that checks file type) as there is a secondary filter / check also still running to check the actually code.

There may also be a ‘learning mode’ issue with Wordfence that once the learning mode is done testing and the ‘Enabled and Protected’ Mode kicks in – it has learnt ‘wrong’ and needs a little help to be re-trained.  Read both articles here and here.

Solutions and fixes to HTTP error when uploading profile image to Buddypress profile

I personally have not found a fix for me – but in the meantime, here are some articles I did find (that haven’t solved my particular problem yet) on this issue that may help you from folks that have fixed this bug on their WordPress installation.

Possible Solution 1 from Buddypress repository


This help and advice article is about: fixing the HTTP profile image upload error. Fixing HTTP bug when uploading image to Buddypress social networking plugin. How to fix HTTP Bug on image upload to Buddypress.