Opened 7 years ago
Closed 7 years ago
#7702 closed defect (bug) (no action required)
Uploading cover photo on windows servers
Reported by: | pd9soft | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.9.3 |
Component: | (not sure) | Keywords: | |
Cc: |
Description
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
! 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
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! :)