Legacy Knowledge Base
公開されました Jun. 30, 2025

特定のページのログに”No theme found for specified theme id custom_WAR_customtheme. Returning the default theme.”というメッセージが表示されます。

Written By

Daniel Couso

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.

問題

  • ログに以下の警告メッセージが表示されます:
[http-nio-8080-exec-13][ThemeLocalServiceImpl:220] No theme found for specified theme id custom_WAR_customtheme. Returning the default theme.

環境

  • Liferay DXP 7.0, 7.1, 7.2, 7.3, 7.4
  • Quarterly Release: 2023.Q3, 2023.Q4, 2024.Q1

解決

  • このメッセージは次のような場合に表示されます:
    • ページに設定されているテーマは使用できません。
    • 公開ページまたは非公開ページのセットから継承されたページのテーマセットが利用できません。
  • テーマが読み込めない原因としては、以下のようなものが考えられます:
    • テーマモジュールが起動時に正常にロードされませんでした。
    • テーマの名前が変更されたか、ページまたはページセットに対して設定された後にテーマの名前が変更されました。
  • テーマの名前は以下の3つの項目を連結して得られます。:
      1. liferay-look-and-feel.xmlファイルで指定されたID。
      2. 文字列 WAR_
      3. テーマ内の web.xml ファイルで指定されたサーブレットコンテキスト名、またはweb.xmlファイルが存在しない場合は .war 拡張子を除いたテーマファイル名。
      最後に、この文字列はcom.liferay.util.JS.getSafeNameメソッドで処理され、ダッシュなどの特定の文字が削除されます。
Did this article resolve your issue ?

Legacy Knowledge Base