WordPress.org

Ready to get started?Download WordPress

Forums

Permissions on thumbnail vs. normal image (12 posts)

  1. jwynacht
    Member
    Posted 7 years ago #

    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.jpg

    Anybody experience this? Is there a solution?

    Thanks,

    Jon

  2. jwynacht
    Member
    Posted 7 years ago #

    No word from anybody here ;-(

    Perhaps it's a bug?

  3. Chris_K
    Member
    Posted 7 years ago #

    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.

  4. jwynacht
    Member
    Posted 7 years ago #

    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...

  5. jwynacht
    Member
    Posted 7 years ago #

    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: 438

    This is the output for the thumbnail image:

    STAT:
    PERMS: 0

    Any ideas as to the discrepency?

    Thanks,

    Jon

  6. linickx
    Member
    Posted 7 years ago #

    Hi Jon, did you ever get a resolution ? I'm experiencing exactly the same problem :-|

    Cheers,
    Nick

  7. fsnelting
    Member
    Posted 7 years ago #

    Exactly the same here. I'm upgrading to Ella now, hoping the problem is fixed in the mean time...

  8. jwynacht
    Member
    Posted 7 years ago #

    Just upgraded to Ella and nothing changed...same issue with thumbnails :-(

  9. linickx
    Member
    Posted 7 years ago #

    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 :-)

  10. nooone
    Member
    Posted 7 years ago #

    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!

  11. Ahni
    Member
    Posted 7 years ago #

    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.

  12. meridimus
    Member
    Posted 6 years ago #

    There is a file you can download from my website that fixes the problem: WordPress Eats Thumbnails

Topic Closed

This topic has been closed to new replies.

About this Topic