• 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 :

    [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 to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You apparently migrated an older version of WP because wp_unregister_GLOBALS() is now deprecated. I recommend performing a 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.