Forum Replies Created
-
Go to Settings -> Miscellaneous Settings
Set “Store uploads in this folder” to “wp-content/uploads”
Set “Full URL path to files” to the REAL FULL PATH of your uploads
Then change bp-core-avatars.php line 389
Replace:
Code:if ( !$path = get_option( ‘upload_path’ ) )
$path = WP_CONTENT_DIR . ‘/uploads’;With:
Code:if ( !$path = get_option( ‘upload_path’ ) )
$path = WP_CONTENT_DIR . ‘/uploads’;
else
$path = ABSPATH . $path;It fixes the problem.
I think the problem arises installing WP on a subdomain which is also a subfolder
In my website, which is at http://people.mediaworks.name/blog (http://www.mediaworks.name/people/blog), uploading an image via
Admin Panel -> Media -> Add New
links to:
BP creates the folders avatars and group-avatars in THE SAME subfolder:
http://people.mediaworks.name/blog/http://people.mediaworks.name/blog/wp-content/uploads
Warning: stat() [function.stat]: stat failed for http://people.mediaworks.name/blog/wp-content/uploads/avatars/1 in /people/blog/wp-admin/includes/file.php on line 317
Warning: getimagesize(http://people.mediaworks.name/blog/wp-content/uploads/avatars/1/max_closeup_forum.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /people/blog/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 267
Warning: getimagesize(http://people.mediaworks.name/blog/wp-content/uploads/avatars/1/max_closeup_forum.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /people/blog/wp-content/plugins/buddypress/bp-core/bp-core-cssjs.php on line 81