Skip to:
Content
Pages
Categories
Search
Top
Bottom

Request for help: issue with WordPress/Buddypress Avatars after update WordPress


  • vgvidscom
    Participant

    @vgvidscom

    Dear Buddypress team,

    Hopefully you can help me out with the following problem:

    Since the update to the latest version of WordPress (4.8.1), I have an issue with avatar display between Buddypress and WordPress. I did not have this issue before.

    Users can upload their avatars via the Buddypress profile page on my website:

    vgvids.com

    Front page –> Community –> Profile (visible once you log in) –> Change Profile Photo.

    Now the situation is as follows:

    – The avatars that are uploaded via the Buddypress profile page are still visible on all the Buddypress pages and widgets.

    – But in the past these uploaded avatars where also visible on OTHER WordPress pages on my website, including in widgets from other plugin makers: VG community widget on the homepage in the right sidebar (bbPress plugin) and VG comment widget on the homepage in the right sidebar (Themezee plugin).

    – Now the avatars that you upload on the Buddypress profile page is not visible anymore in these other widgets/plugins/wordpress pages.

    After some research this is my conclusion for now:

    It seems this is a bug from BuddyPress plugin. The profile images can’t be synchronized with WordPress User anymore. Users already added their profile images via the Buddypress profile page, but in WordPress the user avatars are blank.

    (bbPress plugin) and (Themezee plugin) get the avatar from WordPress user, so in this case, they can’t get any images.

    I need this issue to be fixed. But to get it fixed and before we will make any changes, I need to know what exactly the problem is.

    In attempt to resolve the issue I regenerated all images in the website using the wp-cli command ‘wp media regenerate’.

    The regeneration of all images has been completed but the issue persists.

    I also verified that none of my plugins needs updating.

    It could be a compatibility issue of the Buddypress plugin with WordPress 4.8.1. I can’t think of another reason.

    Do you please have a solution? I’m hesitant to re-install Buddypress, because this caused problems in the past with my BBpress login widget (which I prefer to use). I also don’t think re-installing or re-activating is the issue.

    Best regards,

    VG Team

    VGVIDS

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

  • r-a-y
    Keymaster

    @r-a-y

    See:

    Buddypress avatars are blurry for post authors

    If this doesn’t fix the problem, let us know.

    It might be the case that a plugin is overriding BuddyPress’ avatar URL, you could try the following in your theme’s functions.php or wp-content/plugins/bp-custom.php:

    // Replace BP's avatar override filter at a higher priority:
    remove_filter( 'get_avatar_url', 'bp_core_get_avatar_data_url_filter', 10 );
    add_filter( 'get_avatar_url', 'bp_core_get_avatar_data_url_filter', 99, 3 );
    

    vgvidscom
    Participant

    @vgvidscom

    Dear R-a-Y,

    Thank you for the quick reply.

    I don’t understand the first part of your reply. If I follow the link you’ve provided, I see I have to add the following code:

    https://buddypress.trac.wordpress.org/attachment/ticket/7578/7578.01.patch

    I have to add this code in: wp-content/plugins/buddypress/bp-core/bp-core-avatars.php.

    However, the link you’ve provided with the code that I have to place between the lines 1402 and 1403, does not match with what I see when searching for that spot in bp-core-avatars.php. See the following image to see what I mean:

    http://prntscr.com/g5r90g

    The second part of your question: pasting the following code in functions.php:

    // Replace BP’s avatar override filter at a higher priority:
    remove_filter( ‘get_avatar_url’, ‘bp_core_get_avatar_data_url_filter’, 10 );
    add_filter( ‘get_avatar_url’, ‘bp_core_get_avatar_data_url_filter’, 99, 3 );

    –> seems not to do the trick. I pasted the code in my child theme functions.php

    The other option: pasting it in wp-content/plugins/bp-custom.php I was not able to do, because I cannot find bp-custom.php. Not in plugins, and also not in the Buddypress plugin folder. What do you mean with this or where can I find it?

    Hopefully you can help me out, thanks.


    r-a-y
    Keymaster

    @r-a-y

    What version of BuddyPress are you running?

    If you are not on v2.9.0, upgrade or upgrade on a test site if you need to before upgrading on your production site.


    vgvidscom
    Participant

    @vgvidscom

    Hi,

    I’m running latest buddypress version and WordPress version: 4.8.1


    r-a-y
    Keymaster

    @r-a-y

    What is the “latest buddypress version” for you?

    If you were using v2.9.0, then the patch I linked to should apply cleanly. There should be no changes between your copy of /bp-core/bp-core-avatars.php and v2.9’s /bp-core/bp-core-avatars.php.

    If your version is v2.9.0, then I would recommend re-installing BuddyPress from the wordpress.org plugins repository.


    vgvidscom
    Participant

    @vgvidscom

    Dear r-a-y,

    I have the latest version v.2.9.0. I did not re-install yet, since that can maybe cause problems with my setup.

    I found the spot where I have to add your code, see image: http://prntscr.com/g6uoav

    However, I don’t see it fix the problem unfortunately.

    I also added the code you’ve provided again as your second solution under childe theme functions.php –> the code does not seem to the trick either, also not in combination with the 1 above. See image:
    http://prntscr.com/g6usss

    I don’t know yet what you mean with: wp-content/plugins/bp-custom.php , do you mean wp-content/plugins/buddypress/bp-custom.php? Anyways, also in this location I can’t find bp-custom.php

    Hopefully you can help me out now.

    Best regards,

    Bart

    VGVIDS


    r-a-y
    Keymaster

    @r-a-y

    Your line numbers do not match up with v2.9’s, which is why I recommend re-installing. Not sure how re-installing will cause problems unless you have directly modified core files in the past.

    Regarding bp-custom.php, a quick search on Google would have explained what to do with it. Regardless, here’s the link to find out more:

    bp-custom.php

    If the code snippet I provided didn’t work in your theme’s functions.php, it most likely will not work in bp-custom.php either.

    The other potential issue is there might be a plugin conflict.


    vgvidscom
    Participant

    @vgvidscom

    Dear R-A-Y,

    Thank you for the support, appreciate it, and sorry I did not check google myself to find out you need to create bp-custom.php in case it does not exist yet.

    It seems there is a conflict with my theme after extra review of my theme builders’ team.

    Once they update the theme it hopefully works with the updated wordpress and buddypress. If I need your help afterwards, I will send a new request.

    Only issue left is that I don’t know why the lines of coding don’t match in my buddypress version, I never changed code in the core buddypress files.

    Thanks for the support,

    Bart

    VGVIDS


    Anthony Tornambe
    Participant

    @anthonytornambe

    You can update it from setting if you are not able to see it.

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