Limitations of basic export/import tools and media omission issues
- The exported file is not a copy of the website.
- The import is complete, but why are the photos disappearing?
- Is it possible to complete an entire move using only basic tools?
- Three areas where media falls short:
- First, decide whether to move only a portion of the site or to relocate the entire site.
- Dividing the migration scope using LUX Content Migration.
- Frequently Asked Questions.
- WordPress-related links
I created a file for exporting and clicked the import button. However, the text remained intact, but the photos disappeared.
There are even more absurd situations. Sometimes, when you click on a photo on the new site, it redirects you to the address of the old site, which has already been closed. It seems that the text and the photos were not linked together.
The exported file is not a copy of the website.
The basic export/import tool in WordPress is a feature for transferring posts and pages. It does not have the function of completely copying all files and the database.
The WXR export file contains posts, pages, custom post types, comments, custom fields, taxonomies, and user information. In other words, it’s like putting the documents and lists inside a house into a box, rather than exporting the entire house itself.
The WordPress developer documentation also states that for a complete site recovery, both the database and the WordPress files are required. The database alone is not sufficient to restore themes, plugins, or uploaded files.
The import is complete, but why are the photos disappearing?
This problem frequently appears during the migration process. The message indicating that the data transfer is complete may appear, but the photos within the content are missing, or they continue to refer to the old address.
In the WordPress support forum, there is a case where 960 posts and 800 media files were exported, but only approximately 550 were visible after import. In some cases, the images in certain posts continued to point to the address of the previous website.
Surprisingly, the photos themselves are not directly included within the export file. Instead, the address where the photos are located is recorded, and when you import them, the system essentially retrieves them again from that address.
Is it possible to complete an entire move using only basic tools?
To put it simply, while it can be useful for migrating some content, it is insufficient for migrating an entire website.
The import screen provides an option to download attachments from the original website. However, this task only functions correctly when the original website is accessible from outside.
If the original website is still accessible and the necessary media is included in the export list, you can import some of the photos. Conversely, if the address is blocked, the import tool will only find clues to locate the photos and will return empty-handed.
Therefore, reading the phrase “import completed” as meaning that everything has been transferred can be misleading. The document box may have arrived, but the items listed in the documents may not have been retrieved from the warehouse.
Three areas where media falls short:
Firstly, there is the scope of media. Unlike media that are linked to posts or pages, media that are only uploaded to the media library or files managed by plugins may not be included in the basic export.
In other words, the fact that a photo exists on a server is different from the fact that it is included in an export list. Just because an item is in a warehouse does not automatically mean it will be listed on a moving inventory.
Secondly, there is the issue of original content accessibility. If the original website is closed or locked with a password, the download may be stopped. The same problem can occur if firewalls or security settings block external requests.
Thirdly, there is a relationship between files and records. Even if you copy only the files in the “uploads” folder, if there are no corresponding attachment records in the database, they will not appear in the WordPress media library.
The workload increases for the person directly handling the issue here. They must count the number of files, the number of media library entries, and the addresses of images within the text, and they must individually verify which files are missing.
For smaller sites, this might be possible, but when there are many posts and images, the method of visual confirmation is easily unreliable. Simply seeing an image is not enough. If a photo refers to an old address, it could disappear along with the original site when the original site is closed.
First, decide whether to move only a portion of the site or to relocate the entire site.
If you are only adding some of the posts and pages to the new site, you can use the basic tools. However, the original site must be publicly accessible, and after importing, you need to check the number of media files and the image addresses.
- Migrating some posts: After exporting and importing data in WXR format, compare the number of photos and addresses.
- Original site closure: First, secure all files and attachment records separately.
- Domain change and server migration: Migrate the database and the uploads folder together.
When performing tasks such as domain changes or server migrations, where the website must be preserved exactly, it is safer not to rely solely on basic tools. The official WordPress migration guide also instructs users to back up the database, WordPress files, images, plugins, and other files together.
If you need to migrate a large amount of media, you may want to consider a separate migration process instead of importing them one by one from the browser screen. The WP-CLI import command also has an option to first check the local uploads folder and process the attachments.
Ultimately, the principle is simple: if you are transferring only a portion of the content, check and use the basic tools. If you are preserving the entire site, transfer both the files and the database.
Dividing the migration scope using LUX Content Migration.
If you want to separate the category and media scope while migrating some content, LUX Content Migration allows you to define the roles of the existing and new sites, and then export the selected posts, pages, categories, and media to a dedicated file. In the new site, the process involves importing posts, pages, comments, authors, and media. Before execution, you can check the number of new posts, comments, and necessary images that will be created.
After importing, if problems are discovered, you can delete newly created posts from the completed category or task and revert the status. Conversely, if you need to preserve the entire website, including the database, theme, plugins, uploaded files, and settings, you should review the full site backup and restore functionality of the Pro add-on. This tool is suitable for tasks that involve dividing the migration target and the scope of recovery.
The basic export and import functions can be used to move parts of the content, but the migration is complete only after verifying the media and the address. First, check the selection range and the number of images, and if it is necessary to undo the task, LUX Content Migration can handle that process.
When preserving the entire website, the scope of the database, theme, plugins, uploaded files, and settings backup in the Pro add-on must be determined separately. Regardless of the method chosen, verification should be based on the actual files and image addresses, rather than the “import complete” message.
Frequently Asked Questions.
Q. Does using the basic export/import function automatically transfer photos as well?
A. This is not always the case. To download the photo, the original website must be accessible from outside, and the corresponding attachment must be included in the export list.
Q. If the migration is complete, but the images are still pointing to the old domain, what should be done?
A. It is necessary to verify whether the original image addresses remain unchanged on the new site. Before closing the original site, compare the number of images and the addresses embedded in the main text.
Q. If you only copy the “uploads” folder, will the photos appear in the media library?
A. This may not be the case. If only the file exists and there is no record of the attachment in the database, it may not be displayed in the media library.
Q. Can this problem be easily solved using a tool? What kind of tool should be used?
A. Some parts of the content can be handled using the basic WXR tool. For large quantities of media or entire website migrations, it is safer to choose the migration procedure that handles both files and the database, and to check for any missing files and image addresses after completion.
Q. After the website migration, how should the existing image addresses be handled?
After confirming the connection between the existing address and the new address, you must determine the necessary scope of redirects before closing the original website. redirects
LUX Content Migration can suggest redirects based on the mapping between existing addresses and new addresses collected during the import process. The Pro add-on allows you to create and manage 301 redirects. However, the migration status of image files themselves and any remaining addresses within the content must be checked separately.