BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Media › BuddyBoss Media breaking BP Cover Photo Upload
- This topic has 5 replies, 2 contibutors, and was last updated 8 years, 10 months ago by Anonymous.
Question
January 7, 2016 at 8:43 pm #55801@acroyesUploading 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
January 8, 2016 at 3:06 am #55813@
AnonymousHi @acroyes, I have notified developer to fix it
I will provide quick fix on it after getting patch inside development version.
RegardsJanuary 19, 2016 at 2:57 pm #56687@acroyesAny update? My users keep on complaining.
January 21, 2016 at 5:47 am #56791@
AnonymousHi @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 codeswp_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 DubeyJanuary 21, 2016 at 3:35 pm #56836@acroyesThank you. That fixed it!
January 22, 2016 at 10:33 am #56891@
Anonymousgreat, I will close this topic
I will be pushed in next update
Regards
Varun Dubey
- The question ‘BuddyBoss Media breaking BP Cover Photo Upload’ is closed to new replies.