Для начала проверь права на папку с аватарами.
Если не поможет есть такие рекомендации:
1)
CODE:##-----------------------------------------------------------------
## Script allow uploading avatar from user's computer and remote URL.
## Created by Alexander Nowikow http://www.derus.net
## <polkana@hotmail.com>
##-----------------------------------------------------------------
##
## File to EDIT: includes/usercp_avatar.php
##
#
#----[ OPEN ]---------------------------------
includes/usercp_avatar.php
#---------------------------------------------
#----[ FIND ]---------------------------------
#---------------------------------------------
if ( !($imgtype = check_image_type($avatar_filetype, $error, $error_msg)) )
{
return;
}
#---------------------------------------------
#----[ REPLACE WITH ]-------------------------
#---------------------------------------------
if ( !preg_match("/(gif|jpg|jpeg|png)/i", trim(array_pop(explode("/", array_pop(getimagesize($avatar_filename))))), $imgtype) )
{
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '<br />' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
return;
}
$imgtype = '.'.$imgtype[1];
# !!! > NOW CALL FTP MANAGER TO YOUR SITE AND CREATE DIRECTORY IN
# THE ../images/avatars/ THE FOLDER "tmp".
# NOW SET CHMOD 777 -> images/avatars, -> images/avatars/tmp
#
#----[ SAVE/CLOSE ALL FILES ]
2) .htaccess в корне:
CODE:CharsetRecodeMultipartForms Off
|