Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
color.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2007 at 08:10 UTC
Updated:
27 Jul 2007 at 13:54 UTC
Many times when trying to change colors on our linux server for the garland theme or a theme we derived from there, drupal show problems with creating files:
copy(files/color/my_garland-aff77da3/menu-collapsed.gif) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in /srv/www/vhosts/domain.com/httpdocs/d5/modules/color/color.module in Zeile 252.
... 1 of those lines for each of the files in the theme.
The problem is, that sometimes the umask for the process seems to be wrong, and the created directory under files/color doesn't have any execute-permissions, which is not good when trying to put files in it.
After adding a call
chmod($path, 755);
in line 236 of color.module, I can't trigger the error anymore.
Comments
Comment #1
ray007 commentedSorry a small mistake crept in when reporting, added line must of course be
Comment #2
ray007 commentedNobody else seeing this problem?
Then it's maybe something with the Linux server setup, though I have no idea what it could be ...
Comment #3
BioALIEN commentedI've had this problem also on all cPanel based hosting using 5.0. I haven't tested this for 5.1 can someone else please confirm?
Comment #4
ray007 commentedjust for information: our host is plesk-managed, and it happened with drupal 5 and 5.1, both with php 4.
Comment #5
ray007 commentedAny chance of this going in sometime? Shouldn't hurt anybody ...
Comment #6
drummLooks like this is still present in CVS, so moving to 6.x-dev.
I think this should use file_check_directory() to create the directory.
Comment #7
beginner commentedI think this is a duplicate of the following, which is now fixed:
http://drupal.org/node/119196