Title: Error after migrating
Last modified: April 28, 2023

---

# Error after migrating

 *  [axzxp](https://wordpress.org/support/users/axzxp/)
 * (@axzxp)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating/)
 * I tried to migrate a WP website to another server. I saved both static files 
   and the database and moved it accordingly to the normal procedure. After encountering
   errors :
    - I manually update WordPress by replacing `wp-admin` and `wp-includes`
    - deactivate the current theme by changing its folder name
    - deactivate the plunging by changing the needed `active_plugins` option to `
      a:0:{}`
 * I still have a thrown error, here is the traceback :
 *     ```wp-block-code
       [28-Apr-2023 11:27:19 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function wp_unregister_GLOBALS() in /srv/data/web/vhosts/log.alanperfettini.com/htdocs/wp-settings.php:65
       Stack trace:
       #0 /srv/data/web/vhosts/log.alanperfettini.com/htdocs/wp-config.php(26): require_once()
       #1 /srv/data/web/vhosts/log.alanperfettini.com/htdocs/wp-load.php(37): require_once('...')
       #2 /srv/data/web/vhosts/log.alanperfettini.com/htdocs/wp-blog-header.php(13): require_once('...')
       #3 /srv/data/web/vhosts/log.alanperfettini.com/htdocs/index.php(17): require('...')
       #4 {main}
         thrown in /srv/data/web/vhosts/log.alanperfettini.com/htdocs/wp-settings.php on line 65
       ```
   
 * I tried to replace the `wp-settings.php` file by the one from the update but 
   I have error that I’m not able to retrieve in my logs. So I put the previous 
   one back. Any idea on how to proceed from there ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-after-migrating%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating/#post-16700470)
 * You apparently migrated an older version of WP because wp_unregister_GLOBALS()
   is now deprecated. I recommend [performing a manual update](https://wordpress.org/documentation/article/updating-wordpress/#manual-update).
   Once all the correct, current files are in place, when you first log in, WP will
   automatically do any necessary DB updates.

Viewing 1 replies (of 1 total)

The topic ‘Error after migrating’ is closed to new replies.

## Tags

 * [migration](https://wordpress.org/support/topic-tag/migration/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/error-after-migrating/#post-16700470)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
