Problems with Add Media in WordPress

 

WordPress is one of the most popular content management systems on the Internet, it is used by an estimated 17.5% of websites according to W3Techs (source). This is one of those many websites, I recently moved my website over from Joomla to the latest version of WordPress.

Add a new post in WordPress, including the Add Media button
During my initial setting up of WordPress, I went online to find suggestions of what to get WordPress set up properly as I had never used it before. I ended up following a few guides WPGlaze, WPTeach and Pro Blog Design, which involved things like changing the administrator account to installing certain plugins, one of which I really like it’s called WordPress SEO by Yoast. I’m not going to get into what I like about this plugin, what I am going to talk about is how JetPack, which is a standard plugin for WordPress does not play well when combined with WordPress SEO.

So what’s the problem with the Add Media button?

When you have both of these two plugins active at the same time you aren’t able to use the ‘Add Media’ button and you are unable to switch between ‘Visual’ and ‘Text’ mode, which can be rather irritating.

The solution

After Googling around for quite some time I found many discussions about how they were having the same problem, many discussions pointing blame but I couldn’t find anywhere that just plain and simply told me how to fix it. That was until I found this little puppy Dreamhost’s Wiki, which explains that all you need to do is make a small modification to the wp-config.php file to add;

define('CONCATENATE_SCRIPTS', false );

on the line before

require_once(ABSPATH . 'wp-settings.php');

After having made this change to my wp-config.php file I was able to yet again use the ‘Add Media’ button and to switch between ‘Visual’ and ‘Text’ design views when writing posts within WordPress.