The article documents an error users may encounter when attempting to establish Remote Live Staging or when the export/import feature between two Liferay instances is used. It is mandatory to have exactly the same Liferay versions on both servers when attempting to establish Remote Live Staging or using the export/import feature. It is also recommended to use exactly the same patch(es) to avoid failures and data corruption.
Resolution
Example Steps to Reproduce
- Start Liferay 6.2 EE SP11
- Create a Site with a page
- Create a Web Content Structure with an image field
- Create a Web Content Template for your Structure
- Create a Web Content Article with your Structure, upload an image to the image field
- Export the whole Site into a LAR file
- Start Liferay 6.2 EE with portal-86-6210 fix pack
- Create a Site
- Import the LAR file into your Site
- Check your Web Content Article
Result
The image is missing from the article.
Solution
If you are moving data between two different environments using export/import or Remote Staging, you need to make sure that the same patches are applied to all servers being used. This is also true if you are importing a LAR file which originated from the same server. It is essential that all servers are updated with the same patch level which ensures that the code base of the export and import processes are in sync and they will handle the data in the same way.