Unable to find configured theme module - Caused by Theme Add-on Uninstalled Without Unsetting Theme

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

This article requires fixes

This article has been Flagged for fixing. Use caution when using it and fix it if you have Publisher rights.

症状

atlassian-confluence.log に次のエラーが返される。

WARN [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.classic:classic
WARN [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.artemis.commentstab:commentstab-theme

Depending on the add-on, you may also see "Unknown macro" errors displayed on pages:

原因

These log messages occur after Confluence was configured to use a site-wide theme that was installed via an add-on. After the add-on is uninstalled, Confluence automatically reverts back to the default theme but the now non-existent theme is still referenced internally. This causes the 'missing theme module' log messages to appear. More information about this bug can be found in the bug report CONF-14838 - Getting issue details... STATUS .

ソリューション

If you can't re-install the original add-on providing the theme for any reason, then you can fall back to the SQL directions in the next panel.

  1. First, you want to bring back the add-on, so that the references mean something again. Re-install the add-on which provides the theme.
  2. If you really did want to remove the theme, change the global theme and change the theme for any affected spaces, to a  theme other than the one that caused the error.
  3. Once you've changed the theme in the global settings and all applicable spaces, you can then uninstall the add-on once again.

Only use these instructions if the ones above do not work, as they will directly modify your database.

データベースを変更する前には必ずデータをバックアップするようにします。

  1. Find all spaces that are using the wrong theme:

    SELECT *
    FROM BANDANA B, SPACES S
    WHERE B.BANDANAKEY='atlassian.confluence.theme.settings'
    AND S.SPACEKEY=B.BANDANACONTEXT
    AND B.BANDANAVALUE LIKE ('%<theme_name>%')
    ORDER BY S.SPACENAME;

    (info) Replace <theme_name> with the name that appears in the logs.

  2. Update the BANDANA table directly in the database:

    UPDATE BANDANA
    SET BANDANAVALUE= '<map>
      <entry>
        <string>theme.key</string>
        <string></string>
      </entry>
    </map>'
    WHERE BANDANAKEY='atlassian.confluence.theme.settings'
    AND BANDANACONTEXT='<spacekey>';

    (info) Replace <spacekey> with the space key returned in the first query.

     

最終更新日: 2016 年 10 月 6 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.