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

Still need help?

The Atlassian Community is here for you.

Ask the community

This article requires fixes

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

Symptoms

The following appears in the 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:

Cause

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 .

Resolution

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.

Always backup your data before performing any modifications to the 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.

     

Last modified on Oct 6, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.