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

XF 1.3 URGENT: Avatar permissions problem

Valter

Active member
#1
Uploaded avatars are not properly chmodded which makes them not appear in forums. It's 0600 instead of 0644. My hosting provider will not change umask settings so is there anything to do on my side to fix this?

Can I add umask() in php somewhere to define avatars permissions on creation?
 
Last edited:

Mike

XenForo developer
Staff member
#3
You posted in a thread where I mentioned the config.php option to force a specific chmod. You should set that.
 

Valter

Active member
#4
Folder permissions for data and internal_data are correct (0777).
I have a problem with the wrong file permissions.

I've also added $config['chmodWritableValue'] = 0644; to config.php.

But it didn't helped. When user uploads new avatar images are automatically set to 0600.
 

Tracy Perry

Well-known member
#5
Folder permissions for data and internal_data are correct (0777).
I have a problem with the wrong file permissions.

I've also added $config['chmodWritableValue'] = 0644; to config.php.

But it didn't helped. When user uploads new avatar images are automatically set to 0600.
Sounds like a hosting problem... have you contacted them with your problem?
 

Mike

XenForo developer
Staff member
#6
If you've added that to config.php, then I can only presume that the chmod function has been disabled (which I have seen at least once before, I believe). In which case, only your host can help resolve this.
 

Valter

Active member
#7
I've contacted hosting company, they said they can not change php options globally.

Fortunately, forum user Devilwillcry4you sent me a php.ini file which worked for them. I've added that to the forum root folder and problem is gone now. :)

Thanks Devilwillcry4you!