MarcusJonesy
Active member
Having an issue when uploading an avatar. I assuming my folders and settings are incorrect but just want to confirm this. The error I receive is:
Stack trace
#0 src/XF/Pub/Controller/Account.php(454): XF\Service\User\Avatar->updateAvatar()
#1 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Account->actionAvatar(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'avatar', 'json', Object(XF\Mvc\ParameterBag), 'account', Object(XF\Pub\Controller\Account), NULL)
#3 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(1894): XF\Mvc\Dispatcher->run()
#5 src/XF.php(328): XF\App->run()
#6 index.php(13): XF::runApp('XF\\Pub\\App')
#7 {main}
array(4) {
["url"] => string(35) "/community/index.php?account/avatar"
["referrer"] => string(71) "http://**************************/index.php?account/account-details"
["_GET"] => array(1) {
["account/avatar"] => string(0) ""
}
["_POST"] => array(7) {
["avatar_crop_x"] => string(1) "0"
["avatar_crop_y"] => string(1) "0"
["use_custom"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(44) "/community/index.php?account/account-details"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Any help appreciated.
- RuntimeException: Failed to save image to temporary file; image may be corrupt or check internal_data/data permissions
- src/XF/Service/User/Avatar.php:263
Stack trace
#0 src/XF/Pub/Controller/Account.php(454): XF\Service\User\Avatar->updateAvatar()
#1 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Account->actionAvatar(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'avatar', 'json', Object(XF\Mvc\ParameterBag), 'account', Object(XF\Pub\Controller\Account), NULL)
#3 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(1894): XF\Mvc\Dispatcher->run()
#5 src/XF.php(328): XF\App->run()
#6 index.php(13): XF::runApp('XF\\Pub\\App')
#7 {main}
array(4) {
["url"] => string(35) "/community/index.php?account/avatar"
["referrer"] => string(71) "http://**************************/index.php?account/account-details"
["_GET"] => array(1) {
["account/avatar"] => string(0) ""
}
["_POST"] => array(7) {
["avatar_crop_x"] => string(1) "0"
["avatar_crop_y"] => string(1) "0"
["use_custom"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(44) "/community/index.php?account/account-details"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Any help appreciated.