BuddyBoss Home – Web Support Forums Plugins BuddyBoss Media BuddyBoss Media breaking BP Cover Photo Upload

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #55801
    @acroyes

    Uploading a second cover photo after successfully uploading a first one results in a failed upload with “Make sure to upload a unique file” error.

    Steps to reproduce:
    Enable only BuddyPress and BuddyBoss Media on Twenty Fifteen.
    Login and go to upload a cover photo
    Upload a first cover photo
    Without refreshing the page, upload a second cover photo
    Upload fails with “Make sure to upload a unique file” error.

    Expected behavior: successful upload with no error.

    My users have been running into this bug and it’s annoying them. Please fix.

    Thanks!

    Answers

    #55813
    @vapvarun

    Hi @acroyes, I have notified developer to fix it
    I will provide quick fix on it after getting patch inside development version.
    Regards

    #56687
    @acroyes

    Any update? My users keep on complaining.

    #56791
    @vapvarun

    Hi @acroyes
    Our updates are little delayed due to new features we are introducing in Media plugin
    Mean time you can edit Media plugin
    buddyboss-media/includes/types/photo-class.php
    line 267
    Remove following codes

    
    wp_deregister_script( 'moxie' );
    wp_deregister_script( 'plupload' );
    wp_enqueue_script( 'moxie', $assets . '/vendor/plupload2/moxie.js', array( 'jquery' ), '1.2.1' );
    wp_enqueue_script( 'plupload', $assets . '/vendor/plupload2/plupload.dev.js', array( 'jquery', 'moxie' ), '2.1.2' );
    

    with

    
    			
    $bp_upload_actions = array( 'change-cover-image', 'admin' );
    
    			//Check current action is not buddypress change cover image
    			if ( ! in_array( bp_current_action(), $bp_upload_actions ) ) {
    				wp_deregister_script( 'moxie' );
    				wp_deregister_script( 'plupload' );
    				wp_enqueue_script( 'moxie', $assets . '/vendor/plupload2/moxie.js', array( 'jquery' ), '1.2.1' );
    				wp_enqueue_script( 'plupload', $assets . '/vendor/plupload2/plupload.dev.js', array( 'jquery', 'moxie' ), '2.1.2' );
    			}
    

    Regards
    Varun Dubey

    #56836
    @acroyes

    Thank you. That fixed it!

    #56891
    @vapvarun

    great, I will close this topic

    I will be pushed in next update

    Regards
    Varun Dubey

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘BuddyBoss Media breaking BP Cover Photo Upload’ is closed to new replies.