XF 1.4 member cant upload avatar

Hi forum , one of the member can upload avatar , i tryed from admin end same thing , its seas , successfully uploaded, but it shows as image not there . all other members are fine . We tryed re register , same result

that how it looks



Well-known member
Are you trying to upload just one specific image or have you tried with different images? If it's just one image then the file could be corrupt or named with the wrong file extension.
here is error

ErrorException: getimagesize(/opt/lsws/DEFAULT/html/site.com/html/data/avatars/l/5/5256.jpg): failed to open stream: No such file or directory -library/XenForo/Model/Avatar.php:252
Generated By: Brock Samson, Today at 2:49 AM
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'getimagesize(/o...', '/opt/lsws/DEFAU...', 252, Array)
#1 /opt/lsws/DEFAULT/html/site.com/html/library/XenForo/Model/Avatar.php(252): getimagesize('/opt/lsws/DEFAU...')
#2 /opt/lsws/DEFAULT/html/site.com/html/library/XenForo/ControllerPublic/Account.php(587): XenForo_Model_Avatar->recropAvatar(5256, 0, 0)
#3 /opt/lsws/DEFAULT/html/site.com/html/library/*******/Credits/ControllerPublic/Account.php(56): XenForo_ControllerPublic_Account->actionAvatarUpload()
#4 /opt/lsws/DEFAULT/html/site.com/html/library/XenForo/FrontController.php(347): *******_Credits_ControllerPublic_Account->actionAvatarUpload()
#5 /opt/lsws/DEFAULT/html/site.com/html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /opt/lsws/DEFAULT/html/site.com/html/index.php(13): XenForo_FrontController->run()
#7 {main}
Request State
array(3) {
["url"] => string(45) "http://www.site.com/account/avatar-upload"
["_GET"] => array(0) {
["_POST"] => array(9) {
["use_gravatar"] => string(1) "0"
["su"] => string(75) "http://fc03.deviantart.net/fs71/i/2010/152/8/1/Brock_Samson_by_Injust07.jpg"
["avatar_date"] => string(1) "0"
["avatar_crop_x"] => string(1) "0"
["avatar_crop_y"] => string(1) "0"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(25) "/account/personal-details"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"


Well-known member
There's reference to ******* Credits add-on in the error. The problem may be related to that. Try disabling the add-on and seeing if that solves the problem.


XenForo developer
Staff member
Issues such as this are almost always down to incorrect permissions on the data/ directory or subdirectories or files within. You should recursively chmod this directory to 0777 if you're having an issue like this.