WordPress error "This file cannot be imported - It may be caused by file_uploads being disabled in your php ini"

WordPress | Updated March 2026

The "This file cannot be imported" error in WordPress appears when trying to import content via Tools > Import with a file that exceeds the upload size limit, is in an incorrect format, or when the PHP file_uploads directive is disabled. On Ultra Web Hosting, file_uploads is always enabled, so the issue is almost always file size or format.

Most Common Fix

Increase the PHP upload limit in cPanel: go to MultiPHP INI Editor, select your domain, and set upload_max_filesize and post_max_size to 256M. Then retry the import.

01. Increasing the Upload Limit

  1. Log in to cPanel and open "MultiPHP INI Editor"
  2. Select your domain from the dropdown at the top
  3. Find upload_max_filesize and set it to 256M
  4. Find post_max_size and set it to 256M (must be equal to or larger than upload_max_filesize)
  5. Click Apply and retry your WordPress import

For more details on PHP upload settings, see Changing Maximum Upload Size.

02. Checking the File Format

WordPress's built-in importer (Tools > Import > WordPress) expects a WordPress eXtended RSS (WXR) file with the .xml extension. This is the file format produced by Tools > Export in WordPress.

Common format mistakes:

Wrong file type - If you're trying to import a SQL database dump (.sql), that goes through phpMyAdmin or SSH, not the WordPress importer. The WordPress importer is for content (posts, pages, comments, media references), not the database itself.

Compressed file - The importer does not accept .zip or .gz files. Extract the .xml file first and upload that.

Corrupted export - If the export was interrupted, the XML file may be truncated. Re-export from the source site.

03. Splitting Large Import Files

If your WXR export file is very large (over 50 MB), even increasing the PHP limit may not be enough because the import process can time out or run out of memory while processing.

Use the WXR File Splitter to break the file into smaller chunks:

Online tool: WP-CLI import can handle large files from the command line without the web upload limit.

Plugin: Search for "WXR File Splitter" on GitHub. It splits large WordPress export files into smaller pieces you can import one at a time.

If the import fails mid-process with a memory error, increase PHP memory: see Increase PHP Memory.

04. Alternative Import Methods

WP-CLI (recommended for large imports): If you have SSH access, WP-CLI can import WordPress export files with no size limit and no timeout:

wp import export-file.xml --authors=create

You may need to install the WP-CLI import command first: wp package install wp-cli/import-command

Migration plugins: For full site migrations (not just content), plugins like All-in-One WP Migration or Duplicator handle both files and database together. See our migration guide.

Import Still Failing?

If you've increased the upload limit and the file format is correct, open a ticket with the exact error message and file size. We can help import it server-side.

Open a Support Ticket

Quick Recap: WordPress Import Errors

  1. Increase upload_max_filesize and post_max_size in MultiPHP INI Editor
  2. File must be valid WordPress XML (.xml from Tools > Export)
  3. Split large files with WXR File Splitter for files over 50 MB
  4. Use WP-CLI for large imports via SSH
  5. Check post_max_size - must be >= upload_max_filesize

Last updated March 2026 · Browse all WordPress articles

  • 282 Users Found This Useful

Was this answer helpful?

Related Articles

Unable to Create Directory uploads/ - Is Its Parent Directory Writable?

WordPress | Updated March 2026 The "Unable to create directory" error in WordPress means the...

Optimize WordPress Performance

WordPress Knowledgebase | Updated 2026 Your WordPress site deserves to load fast. Ultra Web...

Quickly Disable All WordPress Plugins via phpMyAdmin

WordPress | Updated 2026 If a WordPress plugin is causing your site to crash, show a white...

WordPress Security

🔒 WordPress Security Guide | Updated 2026 WordPress powers over 40% of the web,...

Static HTML Files Not Being Displayed with WordPress

WordPress | Updated March 2026 If you've uploaded a static HTML file to your WordPress site's...



Save 30% on web hosting - Use coupon code Hosting30