Legacy Knowledge Base
Published Jul. 2, 2025

Same result counts from 'Portletpreferences Table'

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

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

Issue

  • Reverting the theme is not deleting the portlet settings.
  • Steps to reproduce the issue after deployed custom 'Theme' consists of embedded 'Web Content'.
    1. Navigate to the home page
    2. Verify web content.
    3. Execute the 'SELECT * FROM PortletPreferences;'
    4. Received the 83 results (At my local system).
    5. Navigate to site Control Menu -> Site builder -> Pages.
    6. Select public pages
    7. Configure them to use a classic theme again.
    8. Navigate to the home page again.
    9. Just to confirm that web content is removed from the page.
    10. Execute "SELECT * FROM PortletPreferences;"
    11. Received the same 83 results (At my local system).

Environment

  • Liferay 7.2 DXP-5
  • MySQL Database

Resolution

  • There is an action called 'Clean Up Orphaned Theme Portlet Preferences' under 'Control Panel > Server Administration' for it.
  • After the execution above action, the result count would get reduced.
Did this article resolve your issue ?

Legacy Knowledge Base