Title: Migration error &#8211; database restore stuck
Last modified: November 13, 2023

---

# Migration error – database restore stuck

 *  Resolved [miczak77](https://wordpress.org/support/users/miczak77/)
 * (@miczak77)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/migration-error-database-restore-stuck/)
 * I see this error while i’m trying to restore from file.
 * I’ve got the same message on public WP instance and on new WP installation (withput
   any other plugins) as well.
 *  
   {“Number”:8192,”Message”:”rtrim(): Passing null to parameter #1 ($string) of
   type string is deprecated”,”File”:”\/autoinstalator\/wordpress4\/wp-includes\/
   formatting.php”,”Line”:2827}

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/migration-error-database-restore-stuck/#post-17200052)
 * The error message you are encountering indicates a compatibility issue, most 
   likely due to the PHP version you are using.
 * Check if you’re using a PHP version recommended by WordPress and change it if
   you are not.
    You can experiment with PHP versions 7 and 8 to see which one solves
   the problem.
 *  Thread Starter [miczak77](https://wordpress.org/support/users/miczak77/)
 * (@miczak77)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/migration-error-database-restore-stuck/#post-17200226)
 * I’ve try with different PHP versions (7.4,8.0,8.1,8.2) and with full memory limit(
   512M).
 * Now I can see a lot of this errors:
 * PHP Fatal error: Out of memory (allocated 501219328) (tried to allocate 32768
   bytes) in /autoinstalator/wordpress8/wp-content/plugins/easy-wp-smtp/vendor/woocommerce/
   action-scheduler/classes/abstracts/ActionScheduler_Lock.php on line 1
   (with different
   paths)
 * I’ve checked backup file by Traktor tool – it is fine.
 * Is it possible to disable all plugins in the backup and restore without any plugins
   at all?
 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/migration-error-database-restore-stuck/#post-17200377)
 * Plugins and themes are activated *after* the database has been restored. Most
   likely, all your data has already been transferred. Try to enable WP_DEBUG and
   see what errors you get.
    Out of memory -> increase memory_limit to 1G

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Migration error – database restore stuck’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-migration/assets/icon-256x256.png?rev=2458334)
 * [All-in-One WP Migration and Backup](https://wordpress.org/plugins/all-in-one-wp-migration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-migration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-migration/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-migration/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Yani](https://wordpress.org/support/users/yaniiliev/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/migration-error-database-restore-stuck/#post-17200377)
 * Status: resolved