Skip to:

Opened 6 years ago

Closed 6 years ago

#7702 closed defect (bug) (no action required)

Uploading cover photo on windows servers

Reported by: pd9soft's profile pd9soft Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9.3
Component: (not sure) 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

Change History (1)

#1 @DJPaul
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi @pd9soft

Thanks for getting in contact. We've been tracking this bug at #7674 and have a proposed fix. Please keep an eye on that ticket for further updates! :)

Note: See TracTickets for help on using tickets.