Legacy Knowledge Base
Published Sep. 10, 2025

Internal Server Error thrown due to orphan portlet

Written By

Ankit Gupta

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Steps to Reproduce
    1) Create a theme with an embedded DM portlet (portletId = 20) in Liferay 6.2.
    2) Deploy this theme.
    3) Visit the page configured with that theme and check that the embedded DM portlet is available.
    4) Add a few documents in it.
    5) Add Most viewed assets Portlet.
    6) Click on the asset from Most viewed assets Portlet, you will be able to access the asset.
    7) Upgrade to 7.0
    8) In DXP 7.0, create a document in DM portlet.
    9) Goto Configuration of Most Viewed Asset Portlet-> Display Settings-> set the Asset Link Behavior as 'View In Context' option
    10) Click on the detail of the document displayed in the Most viewed assets portlet.

    Actual Result: An Internal Server Error is thrown. When I delete the orphan portlet generated by Going to Server Administration-> Navigation->click on Configure Page for the page-> On the Right Corner click on the top ellipse > Orphan Portlets> A list of Orphan portlet is displayed and delete the document and media related orphan portlet. After deletion this orphan portlet, I am able to access the same file.

    Expected Result: The document should be accessed without deleting the orphan portlet.

    Please Note:
    1. The above issue is reproduced when the Asset Link Behavior is set as 'View In Context' option. When the Asset Link Behavior is selected as 'Show Full Content' option, the issue is not reproduced and I am able to access the same file without deletion of the orphan portlet.

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2

Resolution

  • The observed behavior is a known bug and fixed in Liferay DXP 7.0 with Liferay-fix-pack-de-89 and above.
  • The observed behavior is a known bug and fixed in Liferay DXP 7.1 with Liferay-fix-pack-dxp-17 and above.
  • The observed behavior is a known bug and fixed in Liferay DXP 7.2 with Liferay-fix-pack-dxp-4 and above.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to install these Fixpack in your environment.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base