miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Photo album addon for miniBB Attract your miniBB-community, letting members publish their own photos with the Photo album add-on!
Specific miniBB Community Forum / Specific /
Short link for this topic:

Avatars problem

Author Sergeusz
Forums Member
#1 | Posted: 30 May 2009 12:46
After moving to another host nobody can add an avatar.

There is error message specified under $l_uploadError of the language pack.

What the reason for this problem can be?
Author Paul
CEO
#2 | Posted: 1 Jun 2009 02:45
Check permissions for the avatars folder.
Debug the script and get the idea at which point such error appears.
There are a lot of cases why it happens so, without deep debugging it's impossible to tell.
Author Sergeusz
Forums Member
#3 | Posted: 2 Jun 2009 08:55
I've checked permissions before posting here. They are 777.
What do you mean by debugging the script?
Author Paul
CEO
#4 | Posted: 2 Jun 2009 09:26 | Edited by: Paul
It's a programming term. The error appears under addon_avatar.php. There is a block of code which is responsible for uploading a file.

/* upload avatar - step 2 */

You need to put in the code something like

echo 1; exit;

then upload the file again and again until you see the breaking point at some step.

In general, such error will appear when $warn=1; So there is quite a lot of cases when it happens, you need to know which exactly.

Possible reasons:

- the file was not uploaded at all. It may happen because on the server, a temporary upload folder is set up incorrectly. If other applications can't upload the file, this could be the reason.

- uploaded file doesn't match the allowed file type (specified under $availableTypes), so it may be not 'gif', 'jpeg', 'jpg', 'png'.

- the file exceeds the maximum size set under $maxFileSize

- file dimensions exceed $maxAvatarWidth and/or $maxAvatarHeight, or if $staticAvatarSize is set to TRUE, they are not equal to such settings.
Author Sergeusz
Forums Member
#5 | Posted: 8 Jun 2009 14:31
It looks really strange but I don't have any error, may be I'm doing something not right.

Speaking about possible reasons, I think there can be only the first error, because all other possible reasons were checked by me and everything is right about these options, but an avatar can't be uploaded.
Author Paul
CEO
#6 | Posted: 9 Jun 2009 03:36
If other applications can't upload the file, this could be the reason. Do you have other scripts which are programmed to upload files? Do they upload files normally?
Author Sergeusz
Forums Member
#7 | Posted: 9 Jun 2009 12:36
I tried to install a template in my joomla cms ant there was a mistake which said that some files couldn't be moved to media folder. Media folder has 777 permissions.
So it's seems that you are right, Paul. What I need to do? To ask my hosting provider?
Author Paul
CEO
#8 | Posted: 9 Jun 2009 12:46 | Edited by: Paul
Sergeusz:
To ask my hosting provider?

Probably... as I wrote, there could be a temporary upload folder just missing or specified wrong. I experienced that often when moving sites to the newly installed/upgraded servers.
Specific miniBB Community Forum / Specific / Avatars problem Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts