How to fix the WordPress memory exhausted error on your HostPapa account

If you are experiencing Memory Exhausted errors on your WordPress installation, it’s usually due to a plugin, theme or other script exceeding the default allocated memory size limit.

Memory Exhausted Error

The solution is to increase your PHP Memory limit. HostPapa VPS users can adjust the memory limit by making a change to the WordPress wp-config.php file.

Log in to your HostPapa Dashboard and in the top navigation menu, select My cPanel.

My cPanel Menu

Now select File Manager.


Locate the wp-config.php file in your WordPress folder. Right click the file and select Edit.

Now add the following code, just before the line that says ‘That’s all, stop editing! Happy blogging.’

define( 'WP_MEMORY_LIMIT', '256M' );



Save the file, and head back to WordPress – the memory error should now be resolved.

If your WordPress installation is running on a HostPapa shared/reseller service, you will need to resolve the issue a different way.

In your cPanel, click Software > Select PHP Version.

PHP Version

Now click Switch to PHP options.

Switch to PHP Options

Find and click the memory_limit setting, which allows you to edit the option. Use the dropdown menu to select the new limit. Click Apply, then Save.

memory_limit setting

For more help, or to ask a question, please open a support ticket from your HostPapa Dashboard. Follow this link to learn how.

Related Articles

Get online with our affordable web hosting

Get online with our affordable web hosting

Learn more now
HostPapa Mustache