Close Menu
wpexpelorwpexpelor
  • WordPress Beginner tips
  • WordPress Security
  • about us
  • contact us
Facebook X (Twitter) Instagram Pinterest
Facebook X (Twitter) Instagram Pinterest
wpexpelorwpexpelor
  • WordPress Beginner tips
  • WordPress Security
  • about us
  • contact us
wpexpelorwpexpelor
Home»WordPress Beginner tips» WordPress failed to import media solutions!
WordPress Beginner tips

 WordPress failed to import media solutions!

NinaBy NinaNovember 24, 2023Updated:December 3, 2023No Comments3 Mins Read
WordPress failed to import media
WordPress failed to import media
Share
Facebook Twitter LinkedIn Pinterest Email
5/5 - (2 votes)

WordPress failed to import media is one of the common problems that any user can face. Several reasons may have led to this message “failed to import media wordpress”. In this article on wpexpelor, we are going to dive into the effective problem-solving strategy as all of our other contents.

Contents show
1 Failed to import media wordpress xml
2 Increase wordpress file upload size to import desired XML size
3 WordPress failed to import media : other reasons

Failed to import media wordpress xml

Suppose you have exported all website content (a file which contains posts, media, pages, etc.) as an XML file. Now you want to import data to other wordpress websites. To do so, you can use the “WordPress Importer” plugin.

wpexpelor wordpress importer plugin
wpexpelor wordpress importer plugin

Note! Your media, such as pictures and videos, won’t be saved in this file! Just their address will be kept in this XML file. Believe us! If you open the file with an editor, you just access some text and not the media. But why?

failed to import media wordpress xml
failed to import media wordpress xml

As we said before, that’s because only the addresses will be saved here and not the media itself. So important conclusion is that this method will only work if the media you want to upload to the destination website is already accessible on the source website.

Increase wordpress file upload size to import desired XML size

One of the other important things we should mention here is XML file size. It should not be larger than the standards.

wordpress file upload size
wordpress file upload size

But if it is, you can simply increase wordpress file upload size. To do so follow the instructions:

WordPress failed to import media
WordPress failed to import media

From the host management panel, open the file manager section. Open public_html and look for the .htaccess file. Edit the file to add this code:

php_value upload_max_filesize 256M

php_value post_max_size 256M

Before you start to import XML file, increase the PHP memory limit. You can easily increase the limit by following the instructions:
From the host management panel, open the file manager section. Open public_html and look for the wp-config.php file. Look for:

 /* That’s all, stop editing! Happy publishing. */  and just before that you should

increase wp memory limit
increase wp memory limit

Edit file to add this code:

define ('WP_MEMORY_LIMIT', '512M');

Also, before importing the .xml file, go to your host’s file manager and make sure that the access level of the uploads folder is set to 755 in the wp-content folder.

wordpress folder access level
wordpress folder access level

And that’s all! Now, you can insert your desired file. To import the file, go to tools from the WordPress dashboard and click on import. Other reasons may also lead to “WordPress failed to import media.” we are going to discuss them in the next paragraph!

WordPress failed to import media : other reasons

Other reasons may led to the problem of “failed to import media wordpress”. In this section, we are going to write about the:

  1. Your Internet speed: Make sure that your Internet connection is established and has a suitable speed. If necessary, contact your ISP.
  2.  Hosting resources: Sometimes, “wordpress importer failed to import media” due to the lack of hosting resources. Make sure your hosting service provides you with enough resources, including RAM, CPU and space.
  3.  Slow hosting speed: Your site’s speed may be inappropriate, and this is one of the common reasons why you can get errors when you are importing XML files.
  4.  Firewall and security plugins and proxies: sometimes, security plugins prevent XML files from being imported. Make sure your system security plugin and proxies are disabled.​

I hope this article about “WordPress failed to import media” would have helped you. Please feel free to comment any questions.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit VKontakte Telegram WhatsApp
Previous ArticleWordPress php get featured image url
Next Article under construction page wordpress without plugin

Related Posts

woocommerce user registration form without email

June 9, 2024

Edit Author Slug in WordPress

January 30, 2024

install 2 wordpress on same domain

January 23, 2024

Leave A Reply Cancel Reply

Trending
WordPress Database

WordPress Show Data From Database

By NinaDecember 12, 20230

WordPress show data from database is a keyword most of you search on the web…

woocommerce user registration form without email

June 9, 2024

SEO Services in texas

May 30, 2025

Edit Author Slug in WordPress

January 30, 2024

install 2 wordpress on same domain

January 23, 2024
Social
  • Facebook
  • Twitter
  • Pinterest
  • Instagram
Facebook X (Twitter) Instagram Pinterest
©2025 WPexpelor. All Rights Reserved.

Type above and press Enter to search. Press Esc to cancel.