• Unable to create directory *********/blog/wp-content/uploads. Is its parent directory writable by the server?

    Later i created the folders it asked now i get error :

    Warning: move_uploaded_file(******/blog/wp-content/uploads/2006/01/82_page_bkg.gif): failed to open stream: Permission denied in ************/blog/wp-admin/admin-functions.php on line 1757

Viewing 5 replies - 31 through 35 (of 35 total)
  • Ik can upload pictures but only after I deselect: Organize my uploads into month- and year-based folders

    I then get the error below and have to refresh the page, only then I can browse for the file.

    Warning: imagejpeg(): Unable to access …/httpdocs/wp-content/uploads/PICT2034.thumbnail.JPG in …/httpdocs/wp-admin/admin-functions.php on line 761

    Warning: imagejpeg(): Invalid filename ….httpdocs/wp-content/uploads/PICT2034.thumbnail.JPG’ in …httpdocs/wp-admin/admin-functions.php on line 761

    Warning: Cannot modify header information – headers already sent by (output started at …./unitedfareast.com/httpdocs/wp-admin/admin-functions.php:761) in …./unitedfareast.com/httpdocs/wp-admin/inline-uploading.php on line 101

    Mayor bug and i am also thinking of switching back to 1.5.2

    Try changing line 1769 of wp-admin/admin-functions.php. It sets the permissions of the file that was just uploaded. Since some hosts have different user permissions for scripts and other users this could spell trouble in some instances. Try changing the line to:

    $perms = $stat['mode'] & 0000777;

    this allows anyone to access the uploaded images including the function that makes the thumbnail. This seemed to fix the problem on the weblog of a friend of mine. This is not a secure solution though so use at your own risk.

    Yes it worked at my site for a few hours, then the same crab.
    This is a very irritating bug!

    On a few of my weblogs I do not have a problem on others (other servers) this bug.

    My host https://www.protagonist.nl has switched off the safe mode and now everything is working fine. So ask your host not to run your site in safe mode.

    Just to confirm what adminbarnhardnl said, the problem I described is a safemode issue. I have also just had safemode turned off on my hosting and it immediately started working fine.

    Seeing as a lot of shared hosting has safemode on, I can imagine this being a problem for a lot of people, it must be worth implementing this feature in a different way?

Viewing 5 replies - 31 through 35 (of 35 total)
  • The topic ‘Can’t Upload Files/Images’ is closed to new replies.