legacy-knowledge-base
公開されました Jun. 30, 2025

Admin UI breaks after changing site default language

投稿者

Emma Carr-Gardner

knowledge-article-header-disclaimer-how-to

knowledge-article-header-disclaimer

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • After changing a site's default language to a non-English locale and disabling English (United States) support, the Admin UI breaks.
  • The issue occurs when the "Use Localized URL" option is selected in the Instance SEO Configuration before changing the site's default language.
  • Steps to reproduce:
    1. Create a new site.
    2. Go to Instance Settings > Content & Data > Pages > SEO and select "Use Localized URL".
    3. Go to the newly created site's settings > Localization > Languages.
    4. Select "Define a custom default language and additional available languages for this site".
    5. Change the "Default Language" to a language other than English (United States) and Save.
    6. Remove English (United States) from the list of available languages and Save.
  • Result: The UI breaks, and a NullPointerException similar to the following is thrown in the logs:
    ERROR [http-nio2-8082-exec-45][IncludeTag:119] Current URL /group/<site-name>/~/control_panel/manage... generates exception: Cannot invoke "java.util.Locale.getLanguage()" because "siteDefaultLocale" is null
    

Environment

  • Liferay DXP 2024.Q3.13+

Resolution

  • This issue is fixed by LPD-49011. In case you experience it, we recommend opening a Help Center ticket and requesting a hotfix including this specific fix from Liferay Support.

  • LPD-49011 will also be added to a future DXP release, so consider upgrading as well in case the fix has already been added to a DXP version.

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base