• Resolved funkathustra

    (@funkathustra)


    I’ve had a functioning WordPress installation on my server for a year or two now, but as of recent, I can no longer upload files.

    I have a second, much older blog hosted on the same server — it’s running an old version of WordPress, and it, too, has suddenly been unable to upload files.

    I’m running PHP 5.3. The PHP error log says nothing.

    I made sure my wp-content folder was recursively chmod’d to 777, and made sure my /tmp folder was 777, too.

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter funkathustra

    (@funkathustra)

    Thanks for the WordPress equivalent to “are you sure your monitor is turned on?” but I’ve gone through all those things. I’ve tried the Flash uploader as well as the browser-based one as well. Neither works.

    Normally, WordPress files don’t arbitrarily disappear from a server — but just to be safe, I put a copy of the latest version on the server. Didn’t fix anything. I’ve tried working in three different browsers with fresh caches. Again, no success.

    Remember, this is broken on both my 2.9.2 install, as well as my ancient 2.3.2 version (both of which were working great last week).

    The source code isn’t commented very well, so I’m not sure where things are breaking down. If I try uploading the media from the modal dialogue within the Edit Post area, I get a “Failed to write file to disk.” error; from the Add Media panel, I get “Error saving media attachment”

    Any ideas?

    Have you checked whether your host enabled mod_security? Or changed anything in the GD library?

    Thread Starter funkathustra

    (@funkathustra)

    I host my own site, and certainly haven’t changed any settings recently.

    I built a simple PHP upload script, and it kept throwing UPLOAD_ERR_CANT_WRITE — after I went into my php.ini file and changed the upload_tmp_dir to something other than /tmp, my upload script — as well as WordPress — seems to be working fine now.

    Thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“Error saving media attachment” started out of nowhere’ is closed to new replies.