Legacy Knowledge Base
Published Jun. 30, 2025

Admin UI breaks after changing site default language

Written By

Emma Carr-Gardner

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

  • 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