Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cover Photo Issues


  • Callib Carver
    Participant

    @calliblcarver

    Hi,

    We’ver recently launched our site, http://www.theknightsrequiem.com. Our site usses both buddypress and bbpress. We are having an issue with cover photos being uploaded to users profiles.

    When you try to upload the photo, you get a progress bar, like you would see any other time. However it never appears, you just receive the message
    “For better results, make sure to upload an image that is larger than 0px wide, and 225px tall.”

    Again no image is actually uploaded or displayed. However, we can upload user profile photos.

    We are running WordPress 4.8.2
    Our theme is Game Addict by Skywarrior
    Potential plugins that could be affecting this, Buddypress itself, bbpress.

    Thank you for your time and help.

Viewing 8 replies - 1 through 8 (of 8 total)

  • Nikelaos
    Participant

    @nikelaos

    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.


    vincent46
    Participant

    @vincent46

    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.


    Nikelaos
    Participant

    @nikelaos

    I’ve check this with the Plugin “Members”. Doesn’t have any effect, if I deactivate this plugin.


    Boone Gorges
    Keymaster

    @boonebgorges

    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?


    Nikelaos
    Participant

    @nikelaos

    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!


    Boone Gorges
    Keymaster

    @boonebgorges

    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.


    Nikelaos
    Participant

    @nikelaos

    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)…


    Boone Gorges
    Keymaster

    @boonebgorges

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar