Same result counts from 'Portletpreferences Table'
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'.
- 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 ?