Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cannot update cover image


  • Nik
    Participant

    @nikbond

    Wordpress Version 4.94
    BuddyPress Version 2.9.3
    Theme Twenty Seventeen
    No other plug-ins installed

    Message received when editing/updating cover image from profile – “There was a problem uploading the cover image.

    Image appears to be uploaded to the correct upload folder, but profile is not updated.

    Downgrading to BuddyPress Version 2.9.2 resolves the issue and everything works as expected.

    Given the above, this can only be an issue with the latest version of Buddypress (not theme or plug-in related). Please can someone urgently investigate and advise.

    With many thanks in advance.

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

  • Venutius
    Moderator

    @venutius

    That’s interesting,

    I’ve just been able change the cover image on a test server running 2.9.3, could your issue be browser specific or something? I tried with both Firefox and Chrome.


    Nik
    Participant

    @nikbond

    Hi there and thank you for your reply.

    Definitely not browser specific as I also tried Firefox and Chrome.

    However… I’ve just tested on my semi-live dev server and it seems to be working OK, which seems to leave my localhost (xampp) as the culprit. Maybe a permissions setting on the database(?) – although everything else seems to work perfectly fine (even including updating the profile photo). Maybe some other xampp setting that conflicts with the latest version of Buddypress and the way it uploads/saves the cover image?

    Since it seems to work on the dev server, I’m going to cross my fingers that it will also work live, so it’s no longer a major issue… still curious though as would be good to have the localhost version working too.


    pd9soft
    Participant

    @pd9soft

    I also have this problem, on a windows server.

    The issue seems to be that $cover_dir contains a full filesystem path ex C:\Hosting\Website\wp-content\[…] which then fails on line 1317 of bp-core-attachments.php

    if ( 0 !== validate_file( $cover_dir ) || ! is_dir( $cover_dir ) ) {

    validate_file returns a “2” as the path has a colon in the second character position.

    Removing this check allows the code to continue, but it still fails on the resizing and cropping.


    pd9soft
    Participant

    @pd9soft

    I don’t know how to officially report this as a bug.


    pd9soft
    Participant

    @pd9soft

    Found the bug tracker & reported here
    https://buddypress.trac.wordpress.org/ticket/7702#ticket


    Nik
    Participant

    @nikbond

    @pd9soft

    Ah I forgot to report back here but I’ve been discussing elsewhere and the issue has already been reported here –

    https://buddypress.trac.wordpress.org/ticket/7674

    and a there’s solution by r-a-y here
    https://buddypress.trac.wordpress.org/attachment/ticket/7674/7674.01.patch

    Apparently a fix will be available in next release.


    pandraka
    Participant

    @pandraka

    When is the next release? This is affecting my production version, but not my test version


    Nik
    Participant

    @nikbond

    @pandraka

    I can’t personally answer that as it’s obviously down to the Buddypress development team(!) but as mentioned above, the fix which can be found here – https://buddypress.trac.wordpress.org/attachment/ticket/7674/7674.01.patch works perfectly well in the meantime…

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