How to Fix Low Memory in GoDaddy (And the UltimateMember cover photo not uploading)


So I go to upload my cover photo for ultimate member, and the progress bar simply freezes after the upload. I open-up the developer console and find that the page is throwing a JavaScript error from jQuery with an unexpected token ‘<‘. I dig deeper and find that this unexpected token is coming from php telling me that I have insufficient memory. The error tells me it’s coming from UltimateMember um-files.php on line 214. I dig even deeper and find that ‘imagecreatetruecolor( $new_w, $new_h)’ is the function throwing the memory error.

This is how I fixed it.

If you look in the GoDaddy CPanel you’ll discover that although the CPanel frontend shows 256 megabytes available, the php settings shows that the memory_limit is set to 64 megabytes and the most any script may consume is 32.

The solution is ‘.user.ini’ file, please note the period before user. This file should contain ‘memory_limit = 512M’. Place this file in your web root, and you are good to go. This will boost your memory limit and allow the resource hungry graphics extensions to do their work.

Have you noticed any gotchas related to memory limits on WordPress.