• Resolved air-ship

    (@air-ship)


    I’ve got a weird thing happening with Media Uploads.

    I recently installed WP 3.03 on my shared hosting server. All went perfectly and I was able to upload media without any problems. Great!

    Yesterday (25 Jan) I installed WP 3.04 on a different domain on the same server. Again all was well – pages and blog content publishing perfectly. I then attempted to upload media and I got the following error:

    “woodburner.jpg” has failed to upload due to an error
    The uploaded file could not be moved to /var/www/vhosts/littlebarngoldsithney.co.uk/httpdocs/uploads

    Okay, so I checked directory permissions. Fine, they are 777 (as I had initially done for wp-content/uploads). Then I changed the wp-content/uploads directory to uploads in httpdocs. Same error. I tried the basic uploader – no error and no upload. I dropped in the suggested .htaccess code as well (from the WP troubleshooting guide). No luck and no uploads, just the error and an empty directory.

    Now for the really weird bit. The WP 3.03 that I had installed previously on a different domain displayed exactly the same error. This had been working perfectly until a few days ago!

    Any help or suggestions will be most welcome as I’m totally stuck now. I’ve gone every which way.

    Many thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try changing the permissions on the wp-content directory to 766. If you still have problems, try 767 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.
    https://codex.www.ads-software.com/Changing_File_Permissions

    Thread Starter air-ship

    (@air-ship)

    Hi and thanks for your reply. It turned out that my server host had moved PHP into safe mode! Sadly they didn’t let me know about this.

    So, it’s fixed now and maybe this may help someone else. TBH, I didn’t even think to check if PHP had been modified as my older install of WP had been working perfectly.

    Thanks for the heads-up. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Media Upload Error’ is closed to new replies.