Simmons Consulting, the Website of Toby Simmons

WordPress 2.5 file uploader and IE7

29
Mar

So, you just upgraded your WordPress blog to 2.5 and you excitedly go to the admin screen to check out the new vaunted multi-file upload with progress bar. You click on the Write tab then click on any of the “Add Media” icons. The screen dims a bit then you are presented with … not the super-sexy, swfupload-based multi-file uploader but instead a dull, a simple, single file upload form and a script error. Why? It’s because you are running IE7. Fortunately, there is a pretty easy fix (that appears to be planned for 2.5.1) There are just two commas that need to be deleted, in two different files.

The first fix is in the file wp-admin/includes/media.php … down at line 817, delete the comma …

Change this:

  1. debug: false,

To this:

  1. debug: false

The next file to edit is wp-includes/js/swfupload/handlers.js … down at line 99, delete the comma right after the number 36 …

Change this:

  1. .animate({minHeight:0,height:36,}, 400, null, function(){jQuery(this).children('.describe').remove()})

To this:

  1. .animate({minHeight:0,height:36}, 400, null, function(){jQuery(this).children('.describe').remove()})

That’s it! The fancy multi-uploader now works in Internet Explorer 7!

Comments (7) »

  1. Harry says:

    Thanks, this was useful and a relief :) I use firefox, but people I install WP for in general use IE7.

  2. Harry says:

    uhmm… or, -would have- been useful and a relief, except it didn’t actually work :s Guess I got a little excited and jumped the gun on the commenting, sorry everybody.

  3. Toby Simmons says:

    So, what didn’t work? What is the error message you are receiving?

  4. Harry says:

    Ok, it did work in the end. I had to clear the cache twice and restart ie7 twice and reboot windows (yep actually reboot) before the changes took hold. I apologize for the confusion, after years of working with Firefox I’m just not used to dealing with explorer’s “quirks”. The edits work just fine :)

  5. […] goes to the Simmons Consulting blog, and can be found below. The first fix is in the file wp-admin/includes/media.php … down at line […]

  6. Thank you! Thank you! Thank you! This fixed worked perfectly!

  7. art lee says:

    The fix worked for me, but even so, every image gets an error, while “crunching” So at least now I can get multiple errors instead of one error at a time.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>