The blog I am attempting to move consists of
1,488 Posts
4 Pages
308,388 Comments
And the above gives the file sizes, so it is a question of resources
I have managed to import
342 Posts
4 Pages
57,638 Comments
But it is taking an eternity and I am doing it on a local server, rather than a remore one that the new site will be on.
After setting the site to display errors I found it reporting – Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262142 bytes) in /var/www/html/wordpress/wp-content/plugins/readymade-wordpress-importer-061/parsers.php on line 443
Following some research, I found a post with that problem and despite being able to configure the server to allow as much resources to the site as I wanted I found the restriction was with WordPress itself, I edited the file wp-includes/default-constants.php
// set memory limits
if ( !defined(‘WP_MEMORY_LIMIT’) ) {
if( is_multisite() ) {
define(‘WP_MEMORY_LIMIT’, ‘940M’);
} else {
define(‘WP_MEMORY_LIMIT’, ‘940M’);
}
}
if ( ! defined( ‘WP_MAX_MEMORY_LIMIT’ ) ) {
define( ‘WP_MAX_MEMORY_LIMIT’, ‘940M’ );
}
Probably a little extreme but it is working slowly…
The original was 64M / 64M / 256M
I would have thought there would be a simple way of doing this but not found it yet.
To move it to the new remote server I will probably just do a mysql export, which will take no time at all.