Print this Post

WordPress Media Upload Failing

if you’re trying to upload media to wordpress and it fails to respond OR it fails with a simple error message like “Import failed,” it may be due to PHP configuration limits. they may be set too low to complete the process.

You should contact your web host and ask them to increase those limits to something like these:

max_execution_time 3600
max_input_time 3600
memory_limit 256M
post_max_size 64M
upload_max_filesize 64M
max_input_vars 3000

you’ll also want try updating php to php 5.5 if you have control over that.

some web hosts allow you to override the php configuration just for your specific site (i.e. so you don’t have to ask them as those settings are normally set globally meaning if they change it, it will affect all of the sites they host on the box). for example, here are the ways you can customize your config for php on bluehost and godaddy:

Bluehost: https://my.bluehost.com/cgi/help/551
Godaddy: https://www.godaddy.com/help/php-upload-limits-on-shared-hosting-1475

you can verify your PHP configuration limits by installing a “php info” type of plugin like this one
BUT I THINK that the plugin above may just display the core php configurations that your hoster has set rather than overridden ones, so just keep that in mind.

And you can also check your PHP error logs to see the exact error being returned.

About devnumbertwo

IT consultant, software developer, technical writer, nba basketball spectator, tea (and occasionally coffee) drinker, cheese enthusiast, dog lover, and a person who once spotted heather locklear at the mall. chiggity check me out on twitter and
WordPress Media Upload Failing was last modified: December 14th, 2017 by devnumbertwo

Permanent link to this article: http://devnumbertwo.com/wordpress-media-upload-failing/