Tried it just yet in BP 2.9.2/WP 4.8.3: A message is shown, that the coverimage is loeded successfully – but the image doesn’t appear.
I try to answer even if I am not an expert.
It could be some user management plug-ins that conflict. It happened to me in the past that the profile image was not linked to the wordpress avatar. I found out that it was a user management plugin that sent him into conflict (the name of the plugin was Ultimate member). I hope I have helped you.
I’ve check this with the Plugin “Members”. Doesn’t have any effect, if I deactivate this plugin.
Another thing to check is whether regular avatar uploads are working. The two features use basically the same mechanism.
Cover image/avatar uploads sometimes run into trouble due to asset offloading, such as plugins that push uploaded assets to Amazon S3 or a CDN. Are you using anything like this?
Yes, I can upload an avatar image without problems (but I can remember, that’s I’ve has had a problem with this and the cover-image was loaded without problems) and I don’t use anything like Amazon S3 or CDN. In <wp-uploaddir, which is set in WP-config>buddypress/members/<userid>/cover-image I can find 5a057ea758c30-bp-cover-image.png, which is the image that I want to be the cover.
Thanks for your reply!
Thanks for the quick response.
Looking over some of the earlier posts, it is weird that the message says “For better results, make sure to upload an image that is larger than 0px wide, and 225px tall.”. This suggests that theme is set up in such a way that it sets the cover image width to 0. As such, it’s possible that it’s being rendered, but being set to 0 width. Are you able to reproduce the problem on a WP default theme, like Twenty Sixteen?
The width for the cover image is inherited from the content_width
global, which should be set by your theme (at least, the wordpress.org theme guidelines require it). It’s possible it’s not being set. Have a look at https://www.binarymoon.co.uk/2012/03/heard-wordpress-contentwidth/, and try doing something like that in your functions.php to see if it helps.
If this turns out to be the issue, then the BP team should look into having a more graceful fallback for cover image width, so that we’re a bit more compatible with non-compliant themes.
I’ve checked the theme for $content_width – well, it’s set to 700 or 1080 using a fullwidth-template (which I don’t use)…
Hm. In this case, there must be a disconnect between your theme’s setting $content_width
and the BP features that use this value. Start your debugging at bp_register_theme_compat_default_features()
in bp-core/bp-core-theme-compatibility.php.