Specific pages show the message "No theme found for specified theme id custom_WAR_customtheme. Returning the default theme." in logs
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
- The following warning message appears in logs:
[http-nio-8080-exec-13][ThemeLocalServiceImpl:220] No theme found for specified theme id custom_WAR_customtheme. Returning the default theme.
Environment
- Liferay DXP 7.0, 7.1, 7.2, 7.3, 7.4
- Quarterly Release: 2023.Q3, 2023.Q4, 2024.Q1
Resolution
- This message can appear under the following circumstances:
- The theme set for a page is not available.
- The theme set for a page which is inherited from a set of public or private pages is not available.
- Some reasons why the theme cannot be loaded may be:
- The theme module could not load successfully at startup.
- The theme has been renamed or its name has been altered after being configured for a page or a set of pages.
- Regarding the theme's name, it is obtained by concatenating the three following items:
-
- ID specified in
liferay-look-and-feel.xml
file.
-
The string _WAR_
- The Servlet Context name specified in a
web.xml
file inside the theme or the theme file's name without the .war extension if a web.xml
file is not present.
Finally, this string is processed by the method com.liferay.util.JS.getSafeName, which removes certain characters like dashes.
Did this article resolve your issue ?