WordPress image upload bug fixed

When upgrading my blogs to wordpress 2.9, I found that the image upload broke. After some fiddling around I managed to get a proper error message out of it, I managed to track down the error to the file wp-admin/includes/file.php, which used a ctype_ function that, for some reason, was disabled on my php version.

Funnily, the exact same bug has apparently been a problem on wordpress before, on version 2.5, in a different file.

Anyway, I fixed the problem. If anyone wants the fixed file, here it is:

Download file.zip

Download the archive, unzip the file.php inside and replace the one in your wp-admin/includes folder with it.


  • By Ben Winton, Friday, January 15, 2010 @ 5:49

    This worked! Thanks!!!

  • By Shane, Saturday, January 30, 2010 @ 8:23

    This did not work for me, I still get the login box. Funny thing is that the flash uploader was working until after I deleted a media file, then it quit.

Other Links to this Post

RSS feed for comments on this post. TrackBack URI

Leave a comment

WordPress Themes