Import xml data via WordPress Importer failed, how to fix it?

When importing XML data via WordPress Importer fails, there can be a few different reasons why this might happen. Here are some steps you can take to troubleshoot and fix the issue:

  1. Increase PHP memory limit: If your XML file is large, you may need to increase the PHP memory limit on your server. You can do this by adding the following code to your wp-config.php file:
define('WP_MEMORY_LIMIT', '256M');
  1. Increase maximum file upload size: If the XML file is larger than the maximum file upload size allowed on your server, you may need to increase this limit as well. You can do this by adding the following code to your .htaccess file:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
  1. Check XML file for errors: If there are errors in the XML file, the WordPress Importer may fail. You can check for errors by opening the XML file in a text editor and looking for any formatting issues, missing tags, or other errors.
  2. Use a different importer plugin: If the WordPress Importer is still failing, you can try using a different importer plugin such as All-in-One WP Migration or WP All Import.
  3. Split XML file: If your XML file is very large, you may want to split it into smaller files to make the import process easier. You can do this using a tool like XMLSplit.
  4. Contact your web host: If you have tried all of the above steps and the import still fails, you may want to contact your web host for assistance. They may be able to help you diagnose and resolve any issues with your server or database that are preventing the import from completing successfully.

By following these steps, you should be able to fix any issues with importing XML data via WordPress Importer.

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe weekly news

Integer posuere erat a ante venenatis dapibus posuere velit aliquet sites ulla vitae elit libero