Same result counts from 'Portletpreferences Table'
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
- Reverting the theme is not deleting the portlet settings.
- Steps to reproduce the issue after deployed custom 'Theme' consists of embedded 'Web Content'.
- Navigate to the home page
- Verify web content.
- Execute the 'SELECT * FROM PortletPreferences;'
- Received the 83 results (At my local system).
- Navigate to site Control Menu -> Site builder -> Pages.
- Select public pages
- Configure them to use a classic theme again.
- Navigate to the home page again.
- Just to confirm that web content is removed from the page.
- Execute "SELECT * FROM PortletPreferences;"
- 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 ?