After moving a WordPress website from a server to a new server, a white screen is shown. Even if you access to admin page, the blank page is always shown.

In order to find the root cause, I have tried to do the followings

A. Disable plugins

  • Rename the folder ./wp-content/plugins to ./wp-content/plugins-bak
  • Refresh the browser to see if the page can be shown correctly

If no, it is not related the plugins, rename the folder back to plugins and check if it is the theme problem.

If yes, it means that one of the plugins causes the issue. Then you have to

  • rename the folder back to plugins, and then rename the plugin folder/file one by one for testing.
  • e.g. rename the plugin folder akismet to akismet-bak and then refresh browser

 

B.Disable themes

  • Rename the folder ./wp-content/themes to ./wp-content/themes-bak
  • Refresh the browser to see if the page can be shown correctly

If no, it is not related the themes, rename the folder back to themes and check if debug logs provide any hints

If yes, rename the folder back to themes, the problem should be caused by your current theme

 

C. Check the Debug Logs

To troubleshoot the root cause, it is recommended to enable the debug mode to get the error or warning logs.

Edit the file ./wp-config.php. Replace the following code

define('WP_DEBUG', false);

by the following code

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
define('SCRIPT_DEBUG', true);

Save the file and refresh the browser. You can find the error or warning logs in ./wp-content/debug.log for your further action.