Author |
Message |
sak
Worker


Joined: Jul 06, 2005
Posts: 172
|
Posted:
Wed Nov 18, 2009 10:20 pm |
|
http://www.ravenphpscripts.com/postt18150.html
Posted towards the end of this thread, but I started a new thread to try to keep it organized.
I'm having trouble with the avatar gallery in 2.4 release. I just updated from 2.4 RC1 to 2.4 release (although I never tested the gallery with RC1 - always assumed it worked...)
This is the error message I get when trying to use the gallery:
Quote: | There was an error when we tried to save your Avatar: Wrong avatar format! Avatars can only be gif, jpg, or png format.
All of the files displayed in the gallery are .jpg and .gif. Any idea what the problem is? |
Avatar uploading and off-site linking seems to work just fine, however. |
_________________ www.ICarry.org
www.GunOwnersFellowship.com |
|
|
 |
nuken
RavenNuke(tm) Development Team

Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Thu Nov 19, 2009 8:46 am |
|
Are these Avatar images you have uploaded or just the default images? |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
spasticdonkey
RavenNuke(tm) Development Team

Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Thu Nov 19, 2009 10:18 am |
|
I assume your getting this through the Your Account module? I had this issue before RNYA so always encouraged users to use Forum - Edit Profile instead.
I'm still on RC1 but looked at it and noticed I had some shortlinks issues in the gallery.. You using shortlinks?
btw, I submitted an issue on mantis... |
|
|
|
 |
sak

|
Posted:
Thu Nov 19, 2009 11:22 am |
|
Update: Custom gallery directories seem to work fine in Forums>Profile
But only the standard default images in the Your Account Gallery work. When I try to use Your Account, I cannot choose any images from any directory besides the "Gallery" directory that comes with RN with the smilies. |
|
|
|
 |
sak

|
Posted:
Thu Nov 19, 2009 11:31 am |
|
Looks like a problem with shortlinks
Example of a working Your Account gallery link (from "Gallery" stock avatars)
Code:http://www.icarry.org/account-avatarsave-gallery-059.gif.html
|
Example of a non-functioning Your Account gallery link (from a custom directory):
Code:http://www.icarry.org/account-avatarsave.html?category=Member%20Custom&avatar=SAK-link.jpg
|
It's trying to pass off the variables like with php, which doesn't work with mod_rewrite obviously :\ |
|
|
|
 |
nuken

|
Posted:
Thu Nov 19, 2009 11:39 am |
|
One way around this is to make sure the new directory does not have a space in the name. Example Member Custom should be Member_Custom. and make sure the image names are lowercase and without dashes. Example SAK-link.jpg needs to be saklink.jpg. I'm sure this will be addressed with a permanent fix soon, but this should avoid the shortlinks issue until then.
edit. The folders need to be lowercase and can not contain _ . The folder and image needs to be one word and all lowercase. |
Last edited by nuken on Thu Nov 19, 2009 11:58 am; edited 1 time in total |
|
|
 |
spasticdonkey

|
Posted:
Thu Nov 19, 2009 11:51 am |
|
the rewrites have an issue with capitalization of the gallery categories and avatar filenames... I don't have time to play with it today but I imagine an edit to htaccess like this is needed, as well as the corresponding Shortlinks files.
RewriteRule ^account-avatarsave-([a-zA-Z0-9_-]*)-([\.a-zA-Z0-9_-]*).html modules.php?name=Your_Account&op=avatarsave&category=$1&avatar=$2 [L]
I'm sure an official fix will be forthcoming soon.
note: looks like nuken got a post in before me
good point about the space in the folder name, but just keep in mind if you change the folder or filenames that any users that have avatars in those folders (or with those filenames) will be broken in the forums; and you'll need to fix either by phpmyadmin or in the forums acp. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Thu Nov 26, 2009 9:04 am |
|
sak, I believe spasticdonkey's fix to be the right one, however, I would like your concurrence of the same if you would please. For now, I have made the above changes within our repository. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
sak

|
Posted:
Mon Nov 30, 2009 10:31 am |
|
Thanks tego, I'll give that a try. So all that seems to be necessary is the htaccess fix? No shortlinks files? |
|
|
|
 |
montego

|
Posted:
Wed Dec 02, 2009 6:08 am |
|
No, both .htaccess and GT file changes are necessary. |
|
|
|
 |
|