This will happen if you used WordPress Export and Import tool for WordPress to WordPress migration, you might/might not faced this problem when you migrated your WordPress from 1 server to another server but this is good for your knowledge.
Eg.
I would like to migrate my WordPress blog from wordpress.com to my domain such as mickgenie.com.
Step:
1. I will go to wordpress.com administrator and export the data file to XML format to my local PC.
2. I will go to mickgenie.com administrator to restore it.
BUT,
I got “timed out” where the XML is not fully restore.
Solution suggested by Mick Genie:
– Change the following value from your PHP.
memory_limit = 512M
default_socket_timeout = 600
pfpro.defaulttimeout = 600
Redo the import again and it should working or you may increase the number of the PHP value to higher value.
Note:
For Apache server, you may change the value from .htaccess file as below.
php_value memory_limit 512M
php_value default_socket_timeout 600
php_value pfpro.defaulttimeout 600
For suPHP server, you may directly change the value from the php.ini file as below
memory_limit = 512M
default_socket_timeout = 600
pfpro.defaulttimeout = 600