Portlet options lost after upgrading to 7.4 U51+
Written By
Daniel Mijarra
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
- After upgrading to 7.4 Update 51+, the Export/Import, Configuration or Remove portlet options are lost.
- This error does not happen if the Classic Theme is applied.
Resolution
- If we have a custom theme applied, we need to update the liferay-frontend-theme-styled and liferay-frontend-theme-unstyled versions in the
package.json file in our theme and then, regenerate and redeploy the theme. Please, use the latest available versions for 7.4.
- You can follow these steps:
- Change the
liferay-frontend-theme-styled and liferay-frontend-theme-styled versions to the latest available ones and save the file. This is an example of package.json:
{
"name": "my-theme",
"version": "1.0.0",
"main": "package.json",
"keywords": ["liferay-theme"],
"liferayTheme": {
"baseTheme": "styled",
"fontAwesome": false,
"templateLanguage": "ftl",
"version": "7.4",
"sassOptions": {
"dartSass": false
}
},
"devDependencies": {
"compass-mixins": "0.12.10",
"gulp": "4.0.2",
"liferay-frontend-css-common": "6.0.4",
"liferay-frontend-theme-styled": "6.0.54",
"liferay-frontend-theme-unstyled": "6.0.45",
"liferay-theme-tasks": "^11.4.0"
},
"scripts": {
"init": "gulp init",
"build": "gulp build",
"deploy": "gulp deploy",
"extend": "gulp extend",
"kickstart": "gulp kickstart",
"status": "gulp status",
"upgrade": "gulp upgrade",
"watch": "gulp watch"
},
"dependencies": {
"node-sass": "7.0.1"
}
}
- Update the modules in your theme:
- Execute
npm install in your theme folder.
- Regenerate the theme:
- Execute
gulp build in your theme folder.
- Deploy the
war file generated to your Liferay server.
- If it doesn't work, you might need to clear the cache (
$LIFERAY_HOME/osgi/state, $LIFERAY_HOME/work, $TOMCAT_HOME/work and $TOMCAT_HOME/work/temp). See related article.
- If it still doesn't work after following the aforementioned steps, try this solution: Widgets don't have all configuration options when using a custom theme.
Did this article resolve your issue ?