I don't know if this is a bug in my setup (I suspect it is), but I have managed to track down every issue I encountered except for this one. When I change my avatar, the upload succeeds, the file saves (the 96 and 256 versions appear in file/avatar) but the image will not display. It shows as a broken image in the crop, preview, and on my profile after saving. Images in notices appear correctly.
I have not changed the default avatar path or dir variables. I am using ssl, but forcing ['avatar']['ssl'] = true; has no effect.
Proabably goes without saying, but the file/avatar directory is writable. I made it readable as well, no change.
I have tried png images with and without transparency, and plain jpegs. All are well below the file size limit, and their dimensions are small (256x256), so as far as I can tell, they should be working.
Open to ideas here!
I don't know if this is a bug in my setup (I suspect it is), but I have managed to track down every issue I encountered except for this one. When I change my avatar, the upload succeeds, the file saves (the 96 and 256 versions appear in file/avatar) but the image will not display. It shows as a broken image in the crop, preview, and on my profile after saving. Images in notices appear correctly.
I have not changed the default avatar path or dir variables. I am using ssl, but forcing ['avatar']['ssl'] = true; has no effect.
Proabably goes without saying, but the file/avatar directory is writable. I made it readable as well, no change.
I have tried png images with and without transparency, and plain jpegs. All are well below the file size limit, and their dimensions are small (256x256), so as far as I can tell, they should be working.
Open to ideas here!
I moved to an entirely new web host, on a VPS rather than private hosting.
I installed gnu-social just as I a normally do. This issue persists (along with a couple of others), I can upload avatars, they save in the correct directory, but they do not display. So, not a browser or cache thing, not a server thing.
I moved to an entirely new web host, on a VPS rather than private hosting.
I installed gnu-social just as I a normally do. This issue persists (along with a couple of others), I can upload avatars, they save in the correct directory, but they do not display. So, not a browser or cache thing, not a server thing.
My admin paths for avatars were all set to INSTALL_DIR/file/avatar.
Avatars were correctly uploading to this directory, and could be opened manually by typing in the URLs.
However, the actual avatar displayed on the site showed a broken image. upon checking the properties of the broken image, I found that it was trying to read from INSTALL_DIR/public/avatar.
Solution: Create INSTALL_DIR/public/avatar and make it writable with chmod a+w INSTALL_DIR/public/avatar. Then, change the admin paths to this new directory in admin settings.
Avatars now save and display correctly.
I have fixed this! Here was the situation:
My admin paths for avatars were all set to INSTALL_DIR/file/avatar.
Avatars were correctly uploading to this directory, and could be opened manually by typing in the URLs.
However, the actual avatar displayed on the site showed a broken image. upon checking the properties of the broken image, I found that it was trying to read from INSTALL_DIR/public/avatar.
Solution: Create INSTALL_DIR/public/avatar and make it writable with chmod a+w INSTALL_DIR/public/avatar. Then, change the admin paths to this new directory in admin settings.
Avatars now save and display correctly.
I don't know if this is a bug in my setup (I suspect it is), but I have managed to track down every issue I encountered except for this one. When I change my avatar, the upload succeeds, the file saves (the 96 and 256 versions appear in file/avatar) but the image will not display. It shows as a broken image in the crop, preview, and on my profile after saving. Images in notices appear correctly.
I have not changed the default avatar path or dir variables. I am using ssl, but forcing ['avatar']['ssl'] = true; has no effect.
Proabably goes without saying, but the file/avatar directory is writable. I made it readable as well, no change.
I have tried png images with and without transparency, and plain jpegs. All are well below the file size limit, and their dimensions are small (256x256), so as far as I can tell, they should be working.
Open to ideas here!
An example of what I'm seeing. The upload appears successful, no visible errors
I assume you've already tried loading the page in a new container tab or in a fresh Private Window? (AKA cleared your cache etc)
I have, and have also tried with a fresh install, and in various browsers.
I moved to an entirely new web host, on a VPS rather than private hosting.
I installed gnu-social just as I a normally do. This issue persists (along with a couple of others), I can upload avatars, they save in the correct directory, but they do not display. So, not a browser or cache thing, not a server thing.
I have fixed this! Here was the situation:
My admin paths for avatars were all set to INSTALL_DIR/file/avatar.
Avatars were correctly uploading to this directory, and could be opened manually by typing in the URLs.
However, the actual avatar displayed on the site showed a broken image. upon checking the properties of the broken image, I found that it was trying to read from INSTALL_DIR/public/avatar.
Solution: Create INSTALL_DIR/public/avatar and make it writable with chmod a+w INSTALL_DIR/public/avatar. Then, change the admin paths to this new directory in admin settings.
Avatars now save and display correctly.