Home
/
WordPress
/
Plugins
/
WordPress Migrator "Allowed memory size exhausted" error

WordPress Migrator "Allowed memory size exhausted" error

This error message can appear if the memory required by the SiteGround Migrator plugin is more than the currently set maximum.

To increase the allowed WordPress memory edit your website’s wp-config.php file. In it locate the line:

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

Replace the value you see in the quotes to with a new one up to 512M. After the changes the line should look like this:

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

In some cases the line might not be present in your wp-config.php file. If you cannot find it, just copy the line provided above and paste it into the file, right before this one:

/* That’s all, stop editing! Happy publishing. */

Once you increase the memory limit, restart the migration process.

If the error persists, check the wp-content/themes and wp-content/plugins directories of your WordPress, as well as their subdirectories, for large, unnecessary files and delete them. Such files can be redundant backups for example or large archives that contain many images, which were already extracted. By deleting such large files, you’ll reduce the memory usage of the plugin and should be able to continue with the migration process.

Share This Article