ErrorException: mkdir(): Permission denied - library/XenForo/Helper/File.php:68
Generated By: SPEED, 9 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'mkdir(): Permis...', '/home/globalha/...', 68, Array)
#1 /home/globalha/public_html/forums/library/XenForo/Helper/File.php(68): mkdir('/home/forumedi/...')
#2 /home/globalha/public_html/forums/library/XenForo/Model/Avatar.php(335): XenForo_Helper_File::createDirectory('/home/forumedi/...', true)
#3 /home/globalha/public_html/forums/library/XenForo/Model/Avatar.php(206): XenForo_Model_Avatar->_writeAvatar(112, 'l', '/home/globalha/...')
#4 /home/globalha/public_html/forums/library/XenForo/Model/Avatar.php(69): XenForo_Model_Avatar->applyAvatar(112, '/tmp/phpT1laXY', 2, 225, 225, Array)
#5 /home/globalha/public_html/forums/library/XenForo/ControllerPublic/Account.php(548): XenForo_Model_Avatar->uploadAvatar(Object(XenForo_Upload), 112, Array)
#6 /home/globalha/public_html/forums/library/XenForo/FrontController.php(337): XenForo_ControllerPublic_Account->actionAvatarUpload()
#7 /home/globalha/public_html/forums/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/globalha/public_html/forums/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
["url"] => string(49) "http://globalhax.com/forums/account/avatar-upload"
["_GET"] => array(0) {
}
["_POST"] => array(8) {
["use_gravatar"] => string(1) "0"
["avatar_date"] => string(1) "0"
["avatar_crop_x"] => string(1) "0"
["avatar_crop_y"] => string(1) "0"
["_xfToken"] => string(8) "********"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(9) "json-text"
["_xfUploader"] => string(1) "1"
}
}
I could be wrong but it looks to me like file permission for the data folder is not set to make a new avatar directory. With an ftp program check the data folder permissions. Out of the box it was set to 777
I'd try it to see if it makes a difference for you, if it doesn't you can always put it back, but it looks like 755 denies 2 writing permissions.
What do the errors say for the error log?
In the data folder do you have an avatar folder?
Recursively set all folders and files to be write able.
YesAll Files And Folders In The Data Folder?
Sorry, I'm all out of my limited ideas. Perhaps others can help resolve this for you.Still the same. Any other opinions? Thank you
Sorry, I'm all out of my limited ideas. Perhaps others can help resolve this for you.
What should the cmod be on file.php?
Could try running a file health check(in tools), I've seen people in the past where they had to re-upload a file, like upload.php.
We use essential cookies to make this site work, and optional cookies to enhance your experience.