After migration of WordPress website I can't access the admin (white page)

migrate wordpress site to new domain
moving wordpress site to new domain
migrate wordpress site to new host
how to migrate a website from one server to another
how to copy a wordpress site from one domain to another
wordpress site not working after migration
manually migrate wordpress - godaddy
wordpress theme not working after migration

I am trying to move a WordPress site from my local server to the online server.

The problem is that, after the migration, if I try to open the administration page (wp-admin) I only obtain a white page, as you can see here: http://scorejava.com/wordpress/wp-admin/. Everything else seems work well in the homepage: http://scorejava.com/wordpress/.

In my local web server I have the WP site into the folder: /var/www/wordpress. I have moved it into a wordpress folder that is into my root directory of my online web server.

I have also import the local database into the onlyne database using MySql and then I have use the Search and Replace for WordPress Databases Script to change automatically all the http://localhost/wordpress occurrence into the database tables with http://scorejava.com/wordpress/.

There is an error on your site, and you need to find out what's happening.

WordPress URLs

When migrating WordPress sites where the URL changes, you will need to tell WordPress about the new URL. WordPress stores that information in the database, so if you're comfortable with that, you could find the correct entry in the wp_options table in your database and update its value.

I will show some fixes for standard WordPress installs (where the site URL is the WordPress root), but you may need to use different values for home and siteurl if you have a different setup.

Fix URLs via SQL

You will need to update the relevant fields in the DB, those being the entries of wp_options where the option_name is siteurl or home. You can find these fields using phpmyadmin, mysql-workbench, or another database management tool, or you can use the following query, changing the URL to be your own.

UPDATE `wp_options` SET `option_value`='http://www.myurl.com' WHERE `option_name` IN ('siteurl', 'home');
Fix URLs via wp-config.php

However, you can also do this via wp-config.php, which I find to be much more comfortable. Just open wp-config.php and add the lines:

// Site URLS (override DB settings)
define('WP_HOME','http://www.myurl.com');     //<-- NO TRAILING /
define('WP_SITEURL','http://www.myurl.com');  //<-- NO TRAILING /

Obviously you'll need to supply your correct URL.

It's possible that this is the only error you're having, and after adding those lines to wp-config.php, you will be able to log in and use your site normally.

Debugging WordPress errors

However, if you continue to experience problems, and any time you're working on developing a website, you will want to see error output. You can check your server logs for information about the errors, but you may find it more convenient for WordPress to simply display the errors in the page. To enable error display, change the following setting to true in wp-config.php.

define('WP_DEBUG', true);

Now WordPress will display any errors it encounters directly in the webpage. Be sure to change the setting to false for use on a production site.

Working with wp-config.php

This file will be located in the root directory of your wordpress installation. To make any of the changes mentioned here, you may either edit the file directly on the server (via ssh for example), or download the file with an FTP client, make your changes using a text editor, and upload the file again.

It's also a good idea to keep a backup copy before making any changes in case you break something while you're working.

References

You can read all about changing the WordPress site URL on the docs page.

How to Move WordPress to a New Host or Server (with No Downtime), There is an error on your site, and you need to find out what's happening. WordPress URLs. When migrating WordPress sites where the URL  The first step to start a migration of your WordPress site is to move the contents from your current host to a new server. To do this, you could use the Import/Export native function that WordPress has. However, this may fail or not export/import all of the contents you have defined, but only a subset.

Late To the party, I've experienced this recently and I managed to solve the issue. Here is what I've done.

Step 1: Set WP_DEBUG to true from the wp-config.php file

Step 2: I tried domain.com/wp-login.php instead of domain.com/wp-admin by this I was able to get atleast login form and some errors of Warning: Cannot modify header information - headers already sent by

Step 3: I've added ob_start(); in wp-login.php file after <?php in first line, of course to get me in for a while.

Step 4: This trick worked. I've disabled all the plugins, and errors are gone.

Step 5: Activated all the plugins one by one to find which plugin is causing error, So that I can fix the error in particular plugin. Like there was one plugin adding style before wp_enqueque_style so I set it to a function and hook it properly.

There were some minor errors too like deprecated functions. Its up to you whether you want to correct it or use alternate plugin.

And Don't forget to remove ob_start from wp_login.php file. The core files should not be changed.

Hope this helps someone like me.

website not working after migration, If you changed your domain name in a migration, trying to access to your new WordPress site after importing your database file will result in  Before we can begin the migration to the new web host, we need to create an environment for a WordPress installation. To do this you must create a database that you can import your SQL data into. Login to your new web host with the user credentials they have supplied you and connect to the cPanel software.

Inside your settings for your WordPress dashboard there are two fields named "WordPress address (URL)" and "Site address (URL)". These are also known as the "Home" and the "Site URL" settings for your website. The values need to match the server you're actually running on.

If you can't get to the admin, you can use phpmyadmin, go into your database, find the fields kin the wp_options table, and make sure they reflect your domain.

It should be enough in most of cases.

After migration of WordPress website I can't access the admin (white , Sometimes the process of migrating a WordPress site isn't that smooth. This can mean going back to an earlier version of the website which is both You have to run the following SQL query in your database provided by  WordPress URLs. When migrating WordPress sites where the URL changes, you will need to tell WordPress about the new URL. WordPress stores that information in the database, so if you're comfortable with that, you could find the correct entry in the wp_options table in your database and update its value.

I've fought the dreaded "White Screen of Death" myself a few times. You can browse the threads at the Wordpress Support Site to glean some suggestions, or Google it for lots and lots of people's stories and advice dealing with these. I can't recommend a single, authoritative reference for this.

In most of my cases it was caused by whitespace after a closing ?> tag that got introduced because of changes in newline schemes between my dev and production servers, usually in a plugin.

You might also try putting Wordpress into debug mode or adding error_reporting(E_ALL); to the first line of your site's /wp-admin/admin.php file to see if these give you any hints.

I've personally been able to avoid these (touch wood) by using the XCloner plugin to make transfers between my Win dev machine and *nix production server.

WordPress Migration Problems and How to Fix Them, Step 3: Set up a new hosting account, then migrate your site AND domain. Here, the Duplicator plugin will come  Support » Localhost Installs » WP pages can’t be reached after migration. wp-admin can be accessed normally. Moving a WordPress site (including changing the

Edit wp-content/themes/active-theme-folder/function.php and add this code just before:

<?php
define('WP_HOME','http://www.myurl.com');     //<-- NO TRAILING /
define('WP_SITEURL','http://www.myurl.com');

7 Common Problems During WordPress Migration And How to Fix It, Moving WordPress is a task that many people find daunting. After dropping the database, remove all WordPress files. Visit the root domain of your website in the browser and it will display the website that's stored in the  Moving your domain without changing the Home and Site URLs of your WordPress site is very simple, and in most cases can be done by moving the files. If database and URL remain the same, you can move by just copying your files and database. If database name or user changes, edit wp-config.php to have the correct values.

How to Migrate WordPress: 3 Common Scenarios, Plus Tutorials for , How do I transfer my WordPress site to a new owner? You can now visit your website to see that all URLs are updated. We hope this article helped you learn how to update URLs when moving your WordPress site. You may also want to see our step by step WordPress SEO guide for beginners. If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials.

Wordpress Migration: How To Move A Site Without Hassle , Migrating a website (including the design) over to WordPress is actually easier The objective of this guide is to help you with the following: Can the content be categorized into the standard “posts” and “pages,” or does it  For some website owners, migrating a WordPress site is a bothersome experience as there are many details to pay attention to during the transfer process. Others think it’s too risky and may damage the whole website. However, even if there are some risks involved, website migration can be a seamless process and will bring several benefits if

Migrating A Website To WordPress Is Easier Than You Think , Moving a WordPress site from one host to another can be a complex The first thing I need to do after logging into the server through SSH is to  Start your first blog today in 3 easy steps. Have a blog in 20 minutes.

Comments
  • did you update your .htaccess and wp-config.php files?
  • I have updated wp-config.php but I have not update .htaccess Where is this .htaccess file? and what I have to do to update it?
  • Actually you may not have an .htaccess if you are not using pretty urls. Try turning error-reporting on to shed some light on the issue.
  • mmm also this thing...what do you mean with "pretty urls"? and how to turnin on error-reporting?
  • Actually I've discovered that a lot of strings into the DB contains the domain hardcoded.. my solution was a total search and replace inside the .sql file containing the export of the database.
  • @Revious I've also experienced that, especially with images, but I think that's outside the scope of this question.
  • @Revious It's certainly possible depending on your setup.
  • Give that man a cookie! This is the full and most correct answer!
  • @Noamiko Thanks
  • same issue, got fixed by deleting white space after ?> In my case it is located on my Child theme's function.php. Hope this help somebody
  • The complete instructions are here: link