Issue
- I have a LAR file that was exported from the portal instance (for example: Wiki_Admin-202004081110.portlet.lar)
- I navigate to the page where the Wiki widget is located and select the Export/Import option in the widget's configuration menu
- When I select my LAR file for import, I get an error: "The file Wiki_Admin-202004081110.portlet.lar cannot be imported. Please import a LAR file for the current portlet."
- There is also an error in the console:
WARN [http-nio-8080-exec-16][PortalImpl:6872] java.lang.IllegalStateException: Send redirect after commit
Environment
- Liferay DXP 7.0+
- Liferay Portal 6.2
Resolution
-
There are two ways to export/import the widget's content. You can navigate to the administrative area located in the Product Menu, or you can visit the widget on its page. Both export/import menus work the same, but the administrative area may hold content different from its widget counterpart.
-
Therefore, the LAR file that you exported from the administrative area will not be compatible to be imported into the widget on the page. You can only import the file at the same place it was exported from.
-
The names of the LAR files are different as well:
-
LAR file exported from Site Administration > Content > Wiki: Wiki_Admin-202004081110.portlet.lar
-
LAR file exported from the Wiki widget on the page: Wiki-202004081112.portlet.lar
-
Note: The Wiki widget was used as an example only, the same mechanism is true for other widgets.
Additional Information
For a more detailed explanation, please refer to our Knowledge Base articles: