[buddypress-trac] [BuddyPress Trac] #7674: Cover Image & More Cannot be Uploaded on Windows Servers with 2.9.3 Update
buddypress-trac
noreply at wordpress.org
Mon Jan 29 20:05:31 UTC 2018
#7674: Cover Image & More Cannot be Uploaded on Windows Servers with 2.9.3 Update
--------------------------+-----------------------------
Reporter: andrewteg | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
In the 2.9.3 update bp-core/bp-core-attachments.php line 1317 changes from
`if ( ! is_dir( $cover_dir ) ) {`
to
`if ( 0 !== validate_file( $cover_dir ) || ! is_dir( $cover_dir ) ) {`
Using validate_file on a directory will always return 2 in a Windows/WAMP
environment because a directory is always something like
`C:\Apache24\htdocs\buddypress/wp-content/uploads/buddypress/groups/4
/cover-image`
This produces a general error with the default message on a WAMP install
that upgrades to 2.9.3.
I believe it also affects line 450 as that uses validate_file on
$type_dir, but I have only confirmed it on line 1317 with $cover_dir.
If I roll just that line back to 2.9.2 version cover update works great.
Thanks,
Andrew
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7674>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list