WordPress migration problems

This post will be updated every now and then, so make sure to check sometimes what's added. I will add common errors/problems with their fixes as I encounter them when migrating WordPress websites to another Hosting server.

wordpress migration problems
wordpress migration problems

Moving WordPress is something that we all encounter often. Whether it’s about new staging area (local or online) or a complete transfer to new server, or w/e, there are problems which we might not realize soon enough.

Let’s start with UTF encoding.
Even the migration goes super smooth and everything seems perfect, one day you might find yourself using your friend’s laptop to do something quick on your website. When you visit your website you get stunned when you see some odd characters showing up instead of your MENU links.
Yes, the UTF encoding went bad, which can happen after the database upgrade too, so be carefull.
The FIX is quite simple, you wouldn’t believe it actually works.
In first case scenario look for your ”wp-config.php” file and check if you have this inside:
define('DB_CHARSET', 'utf8');
If not, then just add it, but if you do then follow the scenario 2 steps:

1. Open your wp-config.php file. Find and comment-out this:

define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

.. OR delete those two lines.
(If there is no ”2nd” line, then just do it with define('DB_CHARSET', 'utf8');)

It will look like this after you comment it out:
//define('DB_CHARSET', 'utf8');
//define('DB_COLLATE', '');

2. Make new ‘wp-config.php’ and upload/overwrite the old one.


Just make it look like this:
define('DB_CHARSET', '');
define('DB_COLLATE', '');

.. and SAVE.

Refresh your website (ctrl + f5) and clear your cache (if any). Your website shouldn’t have weird characters showing up anymore.
Just to be sure, set your file editor encoding to utf8, just like I have in Notepad++:

That’s it, for now.
.. to be Continued!


Please enter your comment!
Please enter your name here