Forum Replies Created
-
WIERD! I took out the file upload URL and media directory and it all started to work. Magically. Now … I’ve been messing with numerous files for the past week as you can see from my activity, but it all came together this morning when I cleared those fields.
I would have loved if this worked for me as well, but alas, no such luck. I am using non MU wp3 beta 2 and bp 1.2.3.
Oddly enough, when I go to view my Avatars at their respective URLs, nothing shows and the document returns 0 bytes — HOWEVER when I look using FTP and download the file, it is there and shows properly.
For instance, if no file was found, this URL would return a 404 error and all I get is a blank page. But the image is there in the directory and the file is 33.2Kb.
http://utwebdev.utoronto.ca/files/avatars/1/chad-bpfull.jpg
Crazy huh!?
Still nada. All changes made to my site in all places. I also had to change this :
$bp->avatar_admin->image->url = str_replace( “/home/utwebdev/public_html/”, “http://utwebdev.utoronto.ca/”, $bp->avatar_admin->image->dir );
or the thumbnails didn’t work. But that shouldn’t affect the uploads.
This still didn’t work for me @Phlux0r. But thanks for the code. I’ve added it to my file anyways.
@Mike Henderson
Did you comment out those two lines like I said?
I’ve tried the installation a few times on WAMP, MAMP and multiple installations on the same server … It should be important to note that THIS site bp.org has the same avatar uploading issues with this new template/release.
This is my htaccess file, which makes the avatar cropper work, but I still get the upload error after :
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule . index.php [L]
# BEGIN WordPressRewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress
OK, so it’s not just me. Try uploading an avatar to THIS SITE. You get the same issues I had! Jesus, hallelujah!
Unfortunately not. I assume you also commented out the lines ->
if ( getimagesize( $bp->avatar_admin->original ) > BP_AVATAR_ORIGINAL_MAX_WIDTH )
$bp->avatar_admin->resized = wp_create_thumbnail( $bp->avatar_admin->original, BP_AVATAR_ORIGINAL_MAX_WIDTH );Call to undefined function ms_file_constants() in /home/utwebdev/public_html/wp-includes/ms-files.php on line 14
I am seeing this in the error logs. Going to look into it.
ipstenu, it doesn’t seem to matter whether or not I upload square images, I just cant get past that one part where it needs to actually crop and upload the two sizes.
Mike, do you get the images to display at all in the cropper? I can get to the cropper now then it conks out I hit the crop this image then it says that the image cannot be uploaded.
This is getting very frustrating!
I’ve made it so that my assets get put into a folder called files and it has the 777 permissions.
PHP Version 5.1.6
Hi ipstenu, I’ve upgraded to the latest nightly, haven’t noticed much difference, and the avatars still don’t work.
I do have GD library 2.0.28 installed and >>
array(12) {
[“GD Version”]=>
string(27) “bundled (2.0.28 compatible)”
[“FreeType Support”]=>
bool(true)
[“FreeType Linkage”]=>
string(13) “with freetype”
[“T1Lib Support”]=>
bool(false)
[“GIF Read Support”]=>
bool(true)
[“GIF Create Support”]=>
bool(true)
[“JPG Support”]=>
bool(true)
[“PNG Support”]=>
bool(true)
[“WBMP Support”]=>
bool(true)
[“XPM Support”]=>
bool(false)
[“XBM Support”]=>
bool(true)
[“JIS-mapped Japanese Font Support”]=>
bool(false)
}
So that’s not the issue either. It doesn’t look like it’s getting to the actual thumbnail creation.
That got me one step further, but then i got the RSOD -> There was a problem cropping your avatar, please try uploading it again
That got me one step further, but then i got the RSOD -> There was a problem cropping your avatar, please try uploading it again
I am running WP3 B1 with Buddypress 1.2.3, no 1.3 that I’ve seen yet. Works well besides Avatar issues.
I think I am having the EXACT same issue as ajohnson.
I upload the avatars just fine. I am not using the network enabled code in WP3 and my avatars are not showing to crop. they begin at the custom directory files/avatars/1 … etc.
It was a fresh WP3-b1 install
Fresh Buddypress 1.2.3 install on top of it.
It seems prudent to post that in WP3, the get_blog_option(BP_ROOT_BLOG, ‘upload_path’) has changed to ‘upload_url_path’ -> this solved a lot of my issues. Fix is needed on line 387 of the bp-core-avatar.php file.