[buddypress-trac] [BuddyPress Trac] #7702: Uploading cover photo on windows servers

buddypress-trac noreply at wordpress.org
Sat Feb 24 02:46:07 UTC 2018


#7702: Uploading cover photo on windows servers
--------------------------+-----------------------------
 Reporter:  pd9soft       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  (not sure)    |    Version:  2.9.3
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When uploading a cover photo on a Windows installation, the system
 generates an error message "There was a problem uploading the cover
 image". Uploading a profile photo works fine.

 The issue seems to be that $cover_dir contains a full filesystem path such
 as "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.

 Another use with the same issue
 https://buddypress.org/support/topic/cannot-update-cover-
 image/#post-271004

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7702>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list