Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
FREEDOM251

Freedom251 › Blog › PHP limits

How to Fix Common WordPress Import Errors

By Freedom251 Team · · 10 min read

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

WordPress imports usually fail for one of six reasons: the upload exceeds PHP limits, the process runs out of memory, execution time expires, the WXR XML is malformed or incomplete, remote attachments cannot be fetched, or an earlier attempt already imported part of the data. The error text tells you which path to take.

Back up the destination, record the exact message, verify that the file is a complete WordPress eXtended RSS (WXR) export, and inspect the site after every attempt. Raise only the limit that matches the failure; when the host will not allow that change, split the export or run the import with WP-CLI.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Start with a safe diagnosis

Do not immediately click Import again. A WordPress import can create posts, users, terms, or media before it stops. The WordPress Administration Handbook warns: “When you resolve the error and try again, you may create duplicate data.”

  1. Back up the destination. Keep a database backup and a copy of the current uploads directory. If the site is new, record that fact; if it already contains content, note the existing post, page, user, taxonomy, and media counts.
  2. Copy the exact error text. “The uploaded file exceeds the upload_max_filesize directive,” “Allowed memory size exhausted,” “Maximum execution time exceeded,” a gateway timeout, and “There was an error when reading this WXR file” require different remedies.
  3. Confirm the file type and integrity. A normal WordPress export is WXR XML. Open a copy in a text editor or XML-aware tool and confirm that it is readable, begins as XML, and ends with its closing tags. Do not edit a large export in a word processor.
  4. Check whether the failed run was partial. Search for imported posts and pages, review users and taxonomies, and inspect Media. Record what exists before deciding whether to retry.

Match the message to the right fix

Error class What it means First remedy Access usually required
Upload or request-size error The file is larger than the PHP or web-server request allowance. Compare upload_max_filesize with post_max_size; raise compatible limits or use a smaller export. PHP/server configuration or hosting support
Allowed memory size exhausted PHP ran out of memory while parsing records, users, terms, or attachments. Increase the permitted PHP memory limit, or split the WXR into smaller valid files. PHP configuration or hosting support
Maximum execution time exceeded The importer did not finish before PHP stopped the request. Raise the execution limit where permitted, split the job, or use WP-CLI. PHP/server configuration, hosting support, or SSH
Gateway or browser timeout A proxy, web server, or browser disconnected from a long-running request even if PHP continued or stopped. Move the job to WP-CLI, or run smaller imports. SSH for WP-CLI, otherwise hosting support
WXR parser or XML-read error The export is malformed, truncated, or not a readable WXR file. Regenerate the export and validate it before importing again. WordPress admin and an XML validation tool
Posts imported but media is missing Attachment fetching was disabled, source URLs were unreachable, or download/size limits blocked the files. Check attachment settings and source reachability; retry attachments separately or import without them. WordPress admin, server access, or SSH

Fix “file too large” upload errors

There are two PHP settings to compare. upload_max_filesize limits an individual uploaded file, while post_max_size limits the entire HTTP POST request. The WordPress.org FAQ states that post_max_size must be larger than upload_max_filesize; otherwise a WXR file can still fail even when the file-specific limit looks high enough.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

The same 2018 FAQ shows these illustrative values: memory_limit = 300M, post_max_size = 200M, upload_max_filesize = 100M, and max_execution_time = 600. They are examples published by WordPress.org, not universal recommendations or a guarantee that a host can process a file of that size.

Check the effective values

Look at the values reported by the site, not only a local php.ini. A hosting panel, a temporary PHP information page, or WordPress’s Site Health information can reveal the PHP configuration actually used by the web request. Shared hosts may ignore overrides in .htaccess or user-level configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Change limits only where permitted

If you control PHP, adjust the relevant configuration, restart the PHP service when required, and verify the new values from the web environment. A managed or shared host may require support to make the change. Ask specifically for enough upload size, POST size, memory, and execution time for the planned import rather than changing every limit indiscriminately.

When the limit cannot be raised

  • Export fewer posts, pages, or date ranges at a time.
  • Create several smaller WXR files and import them sequentially.
  • Use an XML-aware splitter that preserves the WXR header, channel data, item boundaries, and closing tags. Splitting a file at an arbitrary byte position can create another parser error.

After changing a limit, upload a copy of the export and confirm that the error has changed or disappeared. If the same request-size message remains, the web server or proxy may have its own limit that only the host can change.

Fix “Allowed memory size exhausted”

The WordPress Importer README notes that a very large export can exceed the host’s configured PHP memory limit. Parsing a large XML document and processing users, taxonomies, attachments, and image work can consume substantially more memory than the file’s size on disk.

Raise PHP memory when the host allows it

Increase the effective PHP memory_limit through php.ini, the hosting control panel, or the host’s support team. Verify the value in the same web context that runs the importer; a command-line PHP setting and a web PHP setting can differ.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

Reduce the job when you cannot raise memory

  1. Generate smaller exports, preferably by date range or content group.
  2. Import one valid WXR file at a time.
  3. Reduce attachment work if the destination already has the media or if media can be handled separately.
  4. Use WP-CLI from the server so the job is not tied to a browser request.

The README’s practical fallback is to break a very large exported XML file into several smaller pieces and run the import script one at a time. Each piece must remain valid WXR; keep the original file untouched as your recovery copy.

Fix execution-time and gateway timeouts

“Maximum execution time exceeded” means PHP stopped the request before the importer finished. A gateway timeout can occur earlier in the chain, when a reverse proxy or web server gives up waiting. Increasing only the PHP value will not fix a shorter proxy limit.

Use the browser importer for small, short jobs

The WordPress admin importer is convenient when the export is modest and the server permits a request to run to completion. Keep the browser window open, avoid starting multiple imports, and wait for the completion result before navigating away.

Raise the limit where possible

If you administer the server, increase max_execution_time and any relevant web-server or proxy timeout, then verify that the host accepts the changes. The WordPress.org FAQ’s example of max_execution_time = 600 is an illustrative 2018 setting, not a required value for every site.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Move long jobs to WP-CLI

WP-CLI runs over SSH and is not dependent on a browser tab. The official command is:

wp import /path/to/export.xml

Use the absolute path when possible, run it from a persistent shell session, and save the terminal output. WP-CLI is especially useful when a proxy or browser disconnects even though the server can continue processing.

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Skip expensive work deliberately

The import command documents attachment handling and the image_resize skip option. For an import where media will be copied separately, you can skip attachments:

wp import /path/to/export.xml --skip=attachment

When attachments are needed but thumbnail generation is the bottleneck, skip image resizing:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
wp import /path/to/export.xml --skip=image_resize

To skip both categories in one run, use the documented comma-separated skip list:

wp import /path/to/export.xml --skip=attachment,image_resize

Skipping attachments changes the result: posts may contain references to media that is not present on the destination. Skipping image resizing leaves the original files to be handled later, so confirm that your media workflow creates the required sizes.

Fix “There was an error when reading this WXR file”

The importer source identifies malformed XML as a parser failure and displays “There was an error when reading this WXR file.” Treat this as a file-integrity problem, not a memory or timeout problem.

Verify that the export is complete

  • Compare the file size with the size reported by the export process and confirm that the download completed.
  • Open the file as text and check for a closing XML and RSS structure rather than an abrupt end.
  • Confirm that the file is a WordPress WXR export, not an HTML error page saved with an .xml extension.
  • Run an XML parser or validator. It should identify the line and character where parsing fails.

Regenerate instead of repeatedly retrying

Create a fresh export from the source site and download it again. If only one content range produces an invalid file, export smaller ranges to isolate the damaged section. Do not keep retrying the same malformed file: every successful portion can add another copy of the content.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

Split only at valid boundaries

If the export is too large, use the exporter’s filters or an XML-aware splitter. Preserve the WXR declarations and channel structure in each output and split between complete item records. A text-editor cut in the middle of an item will convert a size problem into a parser problem.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When posts import but images do not

Media attachments are fetched separately from the post records. Missing images therefore do not necessarily mean that the post import failed.

Check attachment fetching

In the browser importer, confirm that the option to fetch and import file attachments is enabled. In WP-CLI, do not use --skip=attachment when you need the files.

Check the original URLs

The importer must reach the source URLs recorded in the WXR file. Confirm that the source site is online, that the URLs resolve from the destination server, and that authentication, firewalls, hotlink rules, or robots controls are not blocking downloads. A URL that works in your desktop browser may still be unreachable from the hosting server.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check download and server limits

Attachment-size restrictions, PHP memory, execution time, disk space, and outbound request rules can stop media while text records continue. Review the destination’s PHP and server logs when available. If a few very large files fail, handle those files separately rather than rerunning every post.

Choose an intentional media strategy

  • Need a complete migration: enable attachment fetching, ensure the source remains reachable, and allow time for downloads and image processing.
  • Already copying media by another method: skip attachments during the WXR import, then verify that the copied files and URLs match the imported references.
  • Need originals but not immediate thumbnails: import attachments while skipping image_resize, then generate image sizes in a separate maintenance step.

Inspect and recover from a partial import

A failed run is not automatically rolled back. Before retrying, inspect the destination in the following order:

  1. Posts and pages: search by several distinctive titles and check publication status, dates, authors, and slugs.
  2. Users: look for accounts created by the import and confirm role assignments.
  3. Taxonomies: review categories, tags, custom taxonomies, and term counts.
  4. Media: check both the Media Library and the uploads directory for imported files and duplicates.
  5. Relationships: open representative posts and verify authors, terms, featured images, and internal links.

Record the highest reliably imported item or date range. If the importer supports selecting a smaller export, begin after that boundary. If you cannot establish a clean boundary, restore the backup and perform one controlled import rather than guessing.

Why blind retries create duplicates

The importer may have completed some records before the request failed. A second run can create another copy of those records, users, terms, or attachments. The Administration Handbook’s warning about duplicate data applies even when the visible error appears late in the process.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Browser importer or WP-CLI?

Situation Browser importer WP-CLI
Small WXR and normal server limits Convenient from WordPress admin; no SSH required. Works, but setup is unnecessary for a short job.
Long-running import Vulnerable to browser, proxy, and request timeouts. Better suited to a persistent server-side process.
Large attachment workload May hit memory or execution limits while downloading and resizing. Allows explicit attachment and image_resize choices.
Host limits cannot be changed Requires smaller files and may still time out. Can help with browser limits, but cannot override PHP, disk, network, or host policies.
Risk of partial duplicates High if the browser disconnects and you retry without inspection. Still present; review the destination after every run.
Required access WordPress administrator account. SSH or equivalent command-line access plus WP-CLI.

WP-CLI is not a substitute for correcting a malformed WXR or an upload limit. It is the better execution method after the file is valid and the main obstacle is request duration, browser reliability, or attachment processing.

A repeatable import checklist

  • Back up the destination database and uploads.
  • Save the exact error message and note the time of the failed run.
  • Confirm the file is complete, readable WXR XML.
  • For size errors, verify that post_max_size exceeds upload_max_filesize.
  • For memory errors, raise permitted PHP memory or create smaller valid exports.
  • For timeout errors, adjust permitted execution/proxy limits or use WP-CLI.
  • For parser errors, regenerate and validate the export instead of retrying it.
  • For missing media, verify attachment fetching, source reachability, and download limits.
  • Inspect posts, pages, users, taxonomies, and media after every attempt.
  • Only retry once you know what data already exists and which part of the job remains.

When to ask the host or a migration specialist

Contact hosting support when you cannot change PHP or proxy settings, when the reported web values differ from your configuration, or when outbound attachment requests are blocked. Provide the exact error, WXR file size, effective values for memory_limit, post_max_size, upload_max_filesize, and max_execution_time, and whether the destination already contains partial data.

A migration specialist can be useful for a large, time-sensitive move when you lack SSH access or cannot safely split and verify WXR files. Regardless of who runs the command, keep the backup and the post-failure inspection process under your control.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

PHP limitsWebsite MigrationWordPressWordPress ImporterWP-CLIWXR

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.