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
http://wordpress.org/extend/plugins/wordpress-php-info/
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.

Previous
Previous

Weblogic Node Manager using Demo cert gives error: certificate_unknown

Next
Next

Uninstall a windows service when there is no executable for it on the system anymore