Media upload: “Failed to write file to disk.”
-
Hello,
I installed WordPress 2.5 today in order to test it for a project. This test install is on my own little web server (linux ubuntu 7.10, apache2, php5, mysql).
The install was fine but it seems I can’t upload files through WordPress. I first had a problem with the media uploader (due to a not up-to-date Flash player) but that is fixed now. Now I have this problem: every file upload (small jpeg or png, 5MB MP3 file…) ends up with: “Failed to write file to disk.” (See a screenshot.)
I thought there was a problem with permissions, but no matter what I did it didn’t work. I even tried using 777 and 666 permissions on all folders and files, but that didn’t fix it.
I used the Apache directives in a .htaccess file as suggested here, but there was no effect.
I just wish WordPress would give me a more explicit error. I turned on Debug mode in my wp-config.php and I only got some PHP warnings:
Notice: Undefined variable: errors in /.../wordpress25/wp-admin/includes/media.php on line 298 Notice: Undefined variable: id in /.../wordpress25/wp-admin/includes/media.php on line 298
Just for the record, line 298 says:
return wp_iframe( 'media_upload_type_form', 'image', $errors, $id );
Not sure if this is related to the actual problem.Well, that’s it. Any idea?
(By the way, I have a Movable Type install on the same server, and image upload works fine with that install. But MT doesn’t use PHP for file upload, unless I’m mistaken. Oh, and max upload size for PHP is set to 10 MB).
- The topic ‘Media upload: “Failed to write file to disk.”’ is closed to new replies.