Permissions on thumbnail vs. normal image
-
Hi,
I’m seeing some strange behavior with my install of 2.0.5…when I upload a file it gets put into the upload directory and given odd permissions, like this:
-rw-r–r– 1 50997 Nov 19 12:18 col_available_1_large.jpg
-rw——- 1 3108 Nov 19 12:18 col_available_1_large.thumbnail.jpgAnybody experience this? Is there a solution?
Thanks,
Jon
-
No word from anybody here ;-(
Perhaps it’s a bug?
If it’s a bug, it’s definitely a very uncommon one. Don’t recall seeing a similar question here before (granted, I haven’t searched yet – have you?)
Not sure if it’d be more related to GD, PHP or Apache, to be honest.
I’ve searched high and low and can’t find anything, either in this support forum or general Google search. No error messages in the log file either. I see the section of code which changes the permissions for the uploaded file but nothing for the generated thumbnail.
Any pointers as to how I can try to debug this?
Thanks…
So I’ve been doing some investigating and I put this bit of code:
$File = “testfile.txt”;
$Handle = fopen($File, ‘w’);
fwrite($Handle, “STAT: ” . $stat . “\n”);
fwrite($Handle, “PERMS: ” . $perms . “\n”);
fclose($Handle);after the permissions get set for the uploaded image and the thumbnail version.
This is the output for the uploaded image:
STAT: Array
PERMS: 438This is the output for the thumbnail image:
STAT:
PERMS: 0Any ideas as to the discrepency?
Thanks,
Jon
Hi Jon, did you ever get a resolution ? I’m experiencing exactly the same problem 😐
Cheers,
NickExactly the same here. I’m upgrading to Ella now, hoping the problem is fixed in the mean time…
Just upgraded to Ella and nothing changed…same issue with thumbnails 🙁
Hi All,
I fixed the problem on my host. I’m running suphp to separate website privileges, I needed to change the umask in /etc/suphp.conf to
umask=0022
, and now any files created by php (wordpress) have the correct permissions.Hope that helps 🙂
Hi to all!
I have the same problem… but no response.
I’ve just installed the last version (2.1.2)
Anybody knows how to fix it?
Thanks!I needed to change the umask in /etc/suphp.conf to umask=0022
The hosts had to do it for me, but it worked like a charm linickx – thanks.
There is a file you can download from my website that fixes the problem: WordPress Eats Thumbnails
- The topic ‘Permissions on thumbnail vs. normal image’ is closed to new replies.