Error rescue

WordPress 'Add Media' Button Not Working: Fix (2026)

By Ali Yasin Jatoi 4 min readUpdated July 2, 2026
Reviewed by Ali Yasin Jatoi, Founder & Lead Engineer· Updated July 2, 2026

Quick answer

The Add Media button silently failing is a JavaScript error inside wp-admin. Nine times out of ten it's script concatenation — a plugin dequeued or broke a core admin script. Add `define('CONCATENATE_SCRIPTS', false);` to wp-config.php, hard refresh, then check the browser console for the underlying error.

Fix #1 — Disable admin script concatenation

Add to wp-config.php: `define('CONCATENATE_SCRIPTS', false);`. Reload wp-admin. If Add Media works, a plugin is corrupting the concatenated bundle. Deactivate plugins one by one to find it.

Fix #2 — Console-driven debugging

Open DevTools → Console → click Add Media. The console shows the exact JS error and file. If it's from a plugin file, deactivate that plugin.

Prefer we just fix it?

This exact error is what our flat-fee website repair service resolves — most fixes ship in under 60 minutes, no retainer, no lock-in. Learn more about flat-fee website repair or grab a slot below.

Fix #3 — Reset user permissions

Rarely, a broken role-management plugin strips the upload_files capability. Confirm your user has 'upload_files' via User Role Editor.

When to call for help

Broken Add Media blocks all content work — publishers can't do their job. Our fixed-fee fix is $79 and includes admin JS conflict audit + user permission verification.

Common questions

Why doesn't the Add Media button work in WordPress?+

A JavaScript error inside wp-admin, almost always caused by another plugin. Add `define('CONCATENATE_SCRIPTS', false);` to wp-config.php first — if Add Media works after that, a plugin was corrupting the concatenated admin script bundle.

How do I fix Add Media in the Classic Editor?+

Same steps — disable script concatenation, check the console, deactivate plugins to isolate. Classic Editor uses the same media modal as Gutenberg, so JS conflicts affect both.

Does Elementor break the Add Media button?+

Not typically — Elementor uses its own media library. But some Elementor add-on plugins (or third-party lightbox plugins) do enqueue conflicting scripts on wp-admin pages. Deactivate Elementor add-ons first when isolating.

Can I upload media without the Add Media button?+

Yes — go to Media → Add New and upload files there, then insert them via the Gutenberg image block. This is a workaround, not a fix — the underlying JS error still affects other admin features.

Want help with this?

The pages below go deeper, by service and by city.

Want this handled for you?

Book a call and we will review your site before recommending anything.

Call Book a call