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. The plugin needs sufficient memory to handle the data transfer process, and if the allocated memory is too low, it will fail to complete the migration. This is often due to the default memory limit set in WordPress, which may not be adequate for large websites or complex migrations. Therefore, increasing the memory limit is necessary to ensure a smooth migration process.

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. */

This change needs to be applied on the source server from which the website is being transferred, not the destination server.

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