Legacy Knowledge Base
Published Jul. 2, 2025

Locale exceptions

Written By

Kanchan Bisht

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 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 LocalesPresent_Locales.png

(iii) Expected locales should be in UI (by default)AvaialableLangauge.png

  • 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

 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base