• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Avatar Permission Issue

#1
Hi,

When users try to upload an avatar they fail and I get a server issues saying:

mkdir(): Permission denied - library/XenForo/Helper/File.php:7

I am not sure which directory needs which permission to right this ship.

ANyone have some pointers I can easily check.

Thanks
 

Chris D

XenForo developer
Staff member
#2
The data and internal_data directory should be recursively chmodded to 0777.

This particular error would relate to the data directory (and specifically data/avatars and all of its sub directories).
 
#3
Thanks - My data directory does not have a subfolder called avatars. Is this created by the first person adding an avatar (as long as they have write permission to the data directory), or do I need to create the directory?
 

Chris D

XenForo developer
Staff member
#4
It should be created automatically if the permissions allow (likely what is generating the error). So as long as the data directory is writable and recursive it should start to work.
 
#5
Thanks again - Checked my test system which works fine (it's a local system so I can see what going on) - and that has the avatar directory and I did not create it, so your theory is 100% correct. Great Support!