Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I just updated WordPress on my site from 3.1.3 to 3.3.1. I completely deleted the wp-admin and wp-includes directories and uploaded new ones from a fresh zip I downloaded from WordPress.org.

Whenever I go to the Upload New Media page, it comes up with an error that says "updateMediaForm()" is not defined. I see the function is located in handlers.dev. I searched the entire WordPress zip and do not see one file that contains a SCRIPT reference to this file.

I cannot get this page to work in Chrome, Firefox, or IE8. If I don't have Firebug running, then I don't see the JS errors, but when I click on the Select Files button or Browser Uploader link, nothing happens.

Can someone tell me how to fix this? I've deleted the wp-admin and wp-includes three times and uploaded them and the error never goes away. Is this a WordPress bug?

share|improve this question

closed as too localized by toscho Nov 24 '12 at 15:05

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

3 Answers

This function is defined in wp-includes/js/swfupload/handlers.js. Make sure that this file exists.

If so, make sure that it's getting loaded in your Dashboard, by viewing the page source.

The file is loaded in wp-includes/script-loader.php. Search that file for 'swfupload-handlers', which is the internal name that WP gives to the script.

If it's still not working, deactivate all other plugins and switch to the Twenty Eleven theme. There's a chance that one of your plugins or themes is deregistering or unenqueuing the core script.

share|improve this answer
I checked script-loader.php and saw that 'swfupload-handlers' is there. I then disabled every plug-in and the JavaScript error still occurs. After visiting "/wp-admin/media-new.php", I clicked "View JavaScript" in the Web Developer toolbar and do not see the updateMediaForm function defined in any of the JavaScript. Any ideas why? – Zoolander Mar 19 '12 at 17:22

That's not the way you do an upgrade. Yes, replace wp-admin, wp-includes and all root files (except wp-config.php and any custom files) and then go to mydomain.com/wp-admin/upgrade.php. That will upgrade the database, if needed.

Or, upgrade from the admin dashboard. That will correctly upload new files and run the DB upgrade.

See http://codex.wordpress.org/Updating_WordPress

share|improve this answer
I did a complete upgrade (and followed each step in the link you provided), but when I noticed these errors, I tried deleting the two directories again and re-uploading them. – Zoolander Mar 19 '12 at 17:20
The next usual thing is to do is deactivate all plugins and change themes and test. – songdogtech Mar 19 '12 at 17:28
Tried that, but the same thing occurs. :( – Zoolander Mar 19 '12 at 17:34

The issue turned out to be that the /wp-includes/js/plupload directory was missing on my server. Problem solved.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.