WordPress add media button not working

New Page

Troubleshooting WordPress issues

May 19, 2022

freddy m

3 minute read

How to Fix WordPress Add Media Button Not Working

Copy link

Copied !

How to Fix WordPress Add Media Button Not Working How to Fix WordPress Add Media Button Not Working

We know the frustration. You’re busy preparing a post for publication, so you decide to add some media, but the WordPress Add Media button doesn’t work much for your dégoûto.

This problem is frustrating because you don’t know what’s wrong and your workflow gets the worst of it. In this post, we show you exactly how to fix Add Media  button not working.

With that said, let’s jump right in and surprise us with your thoughts and suggestions in the comments.

Download the latest version of WordPress tips

Cause of Add Media button not working

add media button not working add media button not workingThe most common cause of this button Agregar medios  no funcione son los conflictos de secuencias de comandos entre sus temas y complementos de WordPress. JavaScript performs a lot of functions in the WordPress admin, including the Agregar medios  button .

When the JS script that executes the Add Media  button collides with any other script, it cannot process the Add Media  button’s deactivation .

A closely related issue, the Insert button in post  not working, is caused by permission errors on a folder, more so when it changes hosts, but that’s a story for another day.

Now that this issue is no longer shrouded in mystery, let us troubleshoot and fix the Add Media  button not working in WordPress.

How to Fix WordPress Add Media Button Not Working

Using the FTP client or file manager, navigate to your WordPress root directory and open the wp-config.php  file for editing.

accommodation archive administrator host file managerNext, add the following code just before the line that says “That’s it, stop editing!” Good blog.


Save changes to your wp-config.php  file . Log out of your WordPress site and clear all your caches i.e. browser, plugin, third party and server cache.

Reconnectez-vous à votre administrateur WordPress et vérifiez si le  bouton Ajouter un média  fonctionne.

The above code simply tells WordPress to load each script individually instead of combining the requests, which is what WordPress does by default.

Loading the scripts separately minimizes the chances of running into conflicts.

While this code is your best chance of fixing the Add Media button, it is not a permanent solution since the problem indicates you have conflicting scripts on your site, something you obviously want to fix.

Troubleshooting The Cause of WordPress Add Media Button Not Working

Now let us find the root of the script conflict, so you can eliminate the problem once and for all. We recommend you do this on a staging website instead of a live website.

You can pinpoint the cause of your woes using your browser’s Inspect -> Console. The console tool highlights script errors that can help you to identify where the problem lies.

Chrome console Chrome console

That aside, start by deactivating all of your plugins. Then check if the Add Media button is working. If the button is working, then it is obvious one of your plugin is causing the script conflict.

disabling all plugins to fix wordpress issues add media button not working désactiver tous les plugins pour dépanner wordpress ajouter un bouton multimédia ne fonctionne pas Next, reactivate the plugins one by one, and check the Add Media button after each activation. When you find the responsible plugin, contact the developer for help or find a replacement.

If the problem persists after deactivating all plugins, you need to ensure you’ve cleared your caches first and then test if your theme is the cause of the WordPress Add Media button not working.

Just activate a default WordPress theme such as Twenty Seventeen and then check if the problem is gone. If the button works, the issue here is your theme.

administrateur de thèmes et wordpress admin gérer les thèmes dans wordpress admin What to do? Talk to the theme developer for support or change to another theme. If you know your way around code, you can even eliminate the conflict by editing your theme’s files.

When you find the cause of the problem on your staging site, you can go ahead and implement the fix on your live WordPress site.


Usually, the Add Media button breaks due to script conflict somewhere on your website. The line of code we added to wp-config.php we shared earlier should work like magic.

That aside, we recommend you update your WordPress site, so that you can get rid of old code and scripts that might cause conflicts, hence this problem.

Additionally, remember your cache might mislead you to think you have a problem, so it’s vital to clear your cache after/before trying the solution in this post.

Learn How to Solve Other WordPress Errors

How to Use Debug WordPress Function How to Fix Database Connection Errors on WordPress How to Solve Internal Server Error (500) on WordPress How to Fix upload_max_filesize Errors in WordPress How to Solve max_execution_time Exceeded Error How to Fix “Parse Error: Syntax Error, Unexpected” in WordPress How to Fix Broken Permalinks in WordPress

Was this tutorial helpful?



Auteur Auteur

El autor

freddy m

Freddy is a WordPress theme reviewer at WP Theme Raves, a published WordPress blogger, web dev and founder of Vista Media Enterprises – an online business dedicated to WordPress users looking to boost conversion rates through content marketing. He shares his wealth of experience here.

More from Freddy M.

How to Fix Add Media Button Not Working in WordPress

Last updated on April 26th, 2018 by Editorial Staff | Reader DisclosureDisclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

Shares 59 Share Tweet Share Facebook Messenger WhatsApp Email

Recently one of our users reported that the ‘Add Media’ button on their WordPress site has suddenly stopped working. This problem does not display any error or warning which leaves users clueless about why their ‘Add Media’ button is not working. In this article, we will show you how to easily fix the ‘Add Media’ button not working issue in WordPress.

Arreglar el botón Agregar medios que no funciona in WordPress Correction du bouton d'ajout de média ne fonctionnant pas dans WordPress

What causes the WordPress ‘Add Media’ Button to Stop Working?

This problem is commonly caused by conflicting scripts or stylesheets loaded by WordPress plugins or themes installed on your site. The default behavior of WordPress is to load all required scripts and stylesheets by combining the requests.

This is usually done in the WordPress admin area to improve performance and speed.

The WordPress post editor uses JavaScript for all buttons on the screen including the add media button. A conflict can stop JavaScript from working which will disable the ‘Add Media’ button.

Le boton Agregar medios dejó de funcionar en WordPress Le bouton Ajouter un média a cessé de fonctionner dans WordPress

That being said, let’s take a look at how to troubleshoot and fix the ‘Add Media’ button not working in WordPress.

Fixing Add Media Button Not Working Issue in WordPress

The quick fix is to add the following code to your wp-config.php file. You can do this by editing wp-config.php file and adding this code just before the line that says ‘That’s all, stop editing! Happy blogging’.


define( ‘CONCATENATE_SCRIPTS’ , false );

This code simply tells WordPress to load each script separately which helps avoiding a JavaScript conflict with buggy scripts and the core WordPress features.

After you have added the code, go ahead and the visit post edit screen to see if the add media button is working as expected.

Note: Adding this code is not a proper long-term solution because you still have a script that is causing the issue. An easier way to find the source of the problem is by using the inspect tool. It will show you console errors which can lead you to the source of the conflict.

If you want a long-term fix for this issue, then you need to perform the basic WordPress troubleshooting tips to figure out which plugin or theme may be causing the issue.

We strongly recommend that you do this on your staging site instead of a live site. Here’s a step by step guide on how to create a WordPress staging site. All the best WordPress hosting companies like Bluehost, SiteGround, WP Engine, and Liquid Web offer 1-click staging functionality.

On your staging site, you need to start by deactivating all your WordPress plugins and then check if it fixed the ‘Add Media’ button. If it does, then this means one of the plugins was causing the issue.

Désactiver tous les compléments Désactiver tous les plugins

You can now activate the plugins one-by-one, and after activating a plugin check the ‘Add Media’ button. This will help you find out which plugin is causing the issue. After you find the culprit, you can replace it with another plugin or ask plugin author for help.

If deactivating plugins doesn’t solve the issue, then the next step is to temporarily switch to a default WordPress theme like Twenty Seventeen.

Cambiar un thème prédéterminé de WordPress Passer à un thème WordPress par défaut

If switching to the default theme fixes the issue for you, then this means your theme is causing the conflict. You can ask theme author for support or switch to a different WordPress theme.

Once you find the source of the problem on your staging site, then you can apply the fix on your live WordPress site.

Esperamos que este artículo le haya ayudado a aprender cómo arreglar el botón Agregar medios que no funciona en WordPress. También puede consultar nuestra lista de los errores más comunes de WordPress y cómo solucionarlos.

Si te gustó este artículo, suscríbete a nuestro canal de YouTube para videos tutoriales de WordPress. También puede encontrarnos en Twitter y Facebook .

Shares 59 Share Tweet Share Facebook Messenger WhatsApp Email


  • Home
  • Web design
  • WordPress
  • About us
  • Buy BeTheme

fond de paralaje

El botón Agregar medios de WordPress no funciona y cómo solucionarlo

Albert Ślusarczyk


Tips, tricks and all of the stuff you should know about BeTheme


Creating attractive digital content includes using media. Images, GIFs, and videos stimulate interest and improve user experience on the site. This in turn leads to more purchases and conversions.

Media play an important role in driving more traffic to the website and improving its SEO ranking.

Working in WordPress isn’t always trouble-free. Some users have experienced problems with uploading media on their site. They run into an error message which doesn’t include an explanation of what exactly caused the issue.

The WordPress add media button not working error can be frustrating. At first, it may not be clear how to fix it.

This article presents some possible sources of this error and tips on how to remove it.

Why the WordPress Add Media Button Not Working Error Occurs



The WordPress post editor uses JavaScript for all screen buttons, including the Add Media. Sometimes the JavaScript conflicts with other scripts or stylesheets, such as custom scripts, plugins, and themes.

WordPress is set by default to load all plugins and themes installed on the site at the same time. It combines all the requests to enhance the speed and the performance of the website.

However, when the JavaScript that runs the Add Media button conflicts with another script, the Add Media button stops working.

This is usually the root cause of the Add Media button not working error.

There is a similar error that occurs during content upload. It’s the Insert into post button not working error. This malfunction is caused by permission errors on a folder.

Here are some tips on how to fix the Add Media button not working.

A Temporary Fix

The previous section explained that the error occurs when there is a collision between some scripts that are loading at the same time. So a quick, but temporary, fix is to process one request at a time. This momentary solution will enable the Add Media button to complete the content upload.

Adding a line of code to the wp-config.php file will disable the combined loading of many scripts. Instead, they will be processed individually.

Here are the individual steps:

1. Go to the cPanel and open the File Manager.

gestionnaire de fichiers


2. In the public_html directory find the wp-config.php file.

3. Create a backup of the original file before making any modifications.

4. Right-click on the wp-config.php file and click on “Edit”.



5. A new window will open. If you have already secured your files by creating a backup, click on “Edit”.



6. In the code, scroll down. Above the “/* That’s it, stop editing! Happy blogging. */”, copy and paste the following code:

set(‘CONCATENER_SCRIPTS’, false );

7. Click “Save changes”.



8. Try the Add Media button again.

This technique should solve the problem of colliding requests. Each script will be loaded separately and the Add Media button will work again. But the speed and performance of the site will be less.

A more accurate solution is to identify the script causing the Add Media button not working error.

A long term solution

To completely remove the error, it is necessary to identify the script causing the conflict.

Every site uses many different plugins and custom scripts. These can include added search boxes, shopping carts, or discussion boards. Some premium themes also use their own built-in plugins.



To check which script is causing the issue, you can use the inspect tool in your browser. The Console in the Developer tools can perform an inspection and find the error.

To verify if the root cause is a plugin, you can deactivate all your WordPress plugins. Make sure to perform the process on your offline website.

1. Go to the WordPress Dashboard.

2. Navigate to the Plugins option in the menu on the left side.



3. Deactivate the plugins.

4. Try the Add Media button. If it works, it means that one of the plugins was the source of the error.

5. Activate the plugins one by one. After each activation check if the Add Media button is working until you find the faulty plugin.



6. Contact the plugin developer for technical support or replace the plugin.

vider le cache


If this didn’t resolve the problem, clear your caches.



The active theme could also be the cause of the error. To check it, switch to a default WordPress theme or one that doesn’t use any built-in plugins. A problem with a theme can be resolved by replacing it or contacting the theme developer.

After identifying the script problem on the offline site, you can fix it on the live WordPress site.

Removing Add Media For Non-Admins



In order to manage who uses the Add Media button, it’s possible to remove the permission from the non-admins.

To hide the Add Media button, add the following code to the functions.php file:

function RemoveAddMediaButtonsForNonAdmins(){ if ( !current_user_can( ‘manage_options’ ) ) { remove_action( ‘media_buttons’, ‘media_buttons’ ); } } add_action(‘admin_head’, ‘RemoveAddMediaButtonsForNonAdmins’);

Editors can have permission to edit pages. To do this you can change the ‘manage_options’ in the code to ‘edit pages’.

End of thoughts on WordPress add media button not working error

When the Add Media button is not working, WordPress users cannot upload images and videos to their site. This can affect not only the user experience and on-page traffic, but also the SEO ranking of the site.

Il existe deux façons de corriger l’erreur – temporairement en ajoutant une ligne de code à wp-config.php. Cette étape empêchera un conflit entre les scripts qui se chargent simultanément. Au lieu de cela, les demandes seront traitées une par une.

The limitation of the short-term solution is that it doesn’t remove the cause of the Add media button not working error. Also, loading scripts one by one negatively affects the speed and performance of the site.

The long-term solution is necessary in order to avoid the same issue in the future. It requires identifying the faulty script that triggers the error. Checking the custom scripts, plugins and themes will most likely pinpoint the root cause.

Finally, making sure that the site’s cache is clear and removing old code and script should resolve the problem.

If you enjoyed reading this article on WordPress add media button not working error, you should check out this one about WordPress mixed content errors.

Nous avons également écrit sur quelques sujets connexes tels que l’échec de l’ouverture du flux, l’horaire manqué de la publication WordPress, l’échec du chargement de l’erreur de ressource, la publication automatique de WordPress sur Facebook, comment réorganiser les pages dans WordPress et l’erreur d’échec de la mise à jour de WordPress.

Albert Ślusarczyk Albert Ślusarczyk

Albert Ślusarczyk

En tant que co-créateur de Be Theme, je crois fermement à la conception avec soin et patience. Je consacre mon énergie, mon temps et mes connaissances à perfectionner le thème pour nos plus de 230 000 clients.

Articles Similaires

elme-temp-960x658 svg%3E

25 janvier 2022

Elementor vs Beaver Builder vs BeBuilder : quel est le meilleur ?

Read more construire-960x695 svg%3E

January 25, 2022

Elementor vs wpBakery vs BeBuilder: Which one you should use

Read more muffin-cus-960x731 svg%3E

January 25, 2022

Best Elementor Alternatives You Should Try

Read more

We would like to thank you for helping us to make our products better and better

See BeTheme in action

© The BeTheme blog. All rights reserved. muffin group

logo_footer svg%3E

Google Google translator

Google Google Translate

Video WordPress add media button not working

Related Posts

Fatal error require failed opening required

Contents1 Fatal error of PHP No se pudo to open the archive requerido2 Subscribe to RSS3 About WPML3.1 From day one, our priorities have remained the same…

Your media file could not be processed.

Contents1 Fixed: Twitter Error “Your media file could not be processed”1.1 freno de mano1.2 ClipChamp Créer1.3 FilmoraGo1.4 adobe sparkle2 Video Your media file could not be processed….

Gravity forms not sending email

Contents1 [SOLVED] Why doesn’t Gravity Forms send email?1.1 How does Gravity Forms send email?1.2 Résoudre les problèmes liés aux formulaires Gravity qui n’envoient pas d’e-mail1.3 Configure Gravity…

This webpage is not founderr_file_not_found

Contents1 Install and manage extensions1.1 Install trusted extensions1.2 Agregar o eliminar el acceso a un sitio específico1.3 Hide extensions1.4 Show extensions2 5 Ways To Permanently Fix Chrome…

Continue to this website not recommended missing

Contents1 Ignore the “Continue to this website (not recommended)” message1.1 publication information1.2 Information1.3 Contents1.4 Admin Items2 Internet Explorer 10 ‘Continue to this website’ is missing option2.1 Similar…

Error loading stream id not found on server

Contents1 JWPlayer 6 error message “Error loading stream: ID not found on server”1.1 Inscrivez-vous ou connectez-vous1.2 Post as guest1.3 Post as guest2 Subscribe to RSS3 Problems with…