Issue
- After upgrade, from Liferay 7.0 to Liferay 7.2, facing the issue when trying to disable any option in public page configuration. The below exception is observed
javax.portlet.PortletException:com.liferay.portal.kernel.exception.LocaleException
Environment
- Liferay 7.2
Resolution
- This exception comes from the DDMStructureLocalServiceImpl method, this method checks whether the default locale specified in the document library structure is present in the available locales of the company
- The following steps need to be followed:
(i) Control Panel-> Instance settings-> Localization
(ii) Available Locales
(iii) Expected locales should be in UI (by default)
- Confirm whether the necessary locales set in the environment? Or these can be set through the portal-ext.properties.
locales.enabled=ar_SA,ca_ES,zh_CN,nl_NL,en_US,fi_FI,fr_FR,de_DE,hu_HU,ja_JP,pt_BR,es_ES,sv_SE
- Restart the server and verify the required above locales in UI.
- If required locales won't reflect then set the below locales through UI.
Arabic(Saudi Arabia)
Catalin(Spain)
Chinese(China)
Dutch(Netherlands)
English(United States)
Finnish(Finland)
French(France)
German(Germany)
Hungarian(Hungry)
Japanese(Japan)
Portuguese(Brazil)
Spanish(Spain)
Swedish(Sweden)
Additional Information:
If any property has been modified once through UI then the same property could not be able to modify again through the portal-ext.properties file.
After adding the above properties, need to restart the server so as to bring the properties into effect.
Unable to disable the footer option after upgrading to Liferay DXP 7.2