Handling Large WordPress Import/Export Files  (WXR)

If your having issues importing a large (more than 20MB) WordPress XML File (WXR) you can fix it by increasing the amount of memory PHP is allowed. Here’s how:

  1. Open up your wp-config.php file
  2. Add the following line:
define('WP_MEMORY_LIMIT', '96M');

The WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP.

Meet the Author

Kevin Leary, WordPress Consultant

I'm a freelance web developer and WordPress consultant in Boston, MA with 17 years of experience building websites and applications. View a portfolio of my work or request an estimate for your next project.