WordPress Import Export without Problems

January 3, 2010

WordPress Import Export

In the WordPress administration menu you can find under “Tools” the points “Import Data” and “Export Data” – functions to backup and move all the stored data, such as WordPress posts, pages, categories and tags.

As long as there are only a few posts stored in a WordPress blog, this is a simple way to back up all the entered data or to import them to a new WordPress blog. If the number of posts increases about 200, this function does not seem work in the right way.

Two problems are concrete, which prevent a successful restore, or a move to major WordPress blogs:

1. Restriction imposed by the PHP security settings on the webserver

In most cases the maximum file size for files to be imported is limited to 2 megabytes. If you import a backup file (XML file) in WordPress, the actually value of maximum filesize is shown under “Tools – Import data”. Since 2 megabytes are quickly reached you have to increase this limit on the server.

Some hosters offer this option, but you can increase the limit by adding the following code to the file .htaccess . The additional settings may also help for a successful import:

php_value upload_max_filesize 50M
php_value memory_limit 250M
php_value post_max_size 50M

If you use “well-formed” URLs (by a corresponding entry in the administration menu under “Permalinks”), WordPress has been made necessary entries in the file. htaccess, which you should never delete. Just appended the above lines.

After the successful import of all data you should remove the additional entries again in order to minimize the server load on web servers.

2. Restrictions by WordPress

When testing import function WordPress has been taken only about 110 posts in the first round. Repeating the import you get the message from these first 110 post, that the articles are already available. But anyway at this second run further posts will be imported. Consequently, we repeated the import function until all posts were stored in the WordPress blog.

The tests were carried out with the WordPress version 2.9.0 on a 1 & 1 Root Server.

January 3, 2010

Leave a Reply