Error rendering template for decorator root - In one Page

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Symptoms

A stack trace error appears when visiting a page. Other pages in the space do not exhibit this error.

The following appears in the atlassian-confluence.log:

2015-02-09 09:12:27,055 WARN [http-8090-52] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr -- url: /apps/wiki/plugins/pagetree/naturalchildren.action | userName: user | referer: URL 2015-02-09 09:12:28,103 WARN [http-8090-45] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr -- url: /apps/wiki/plugins/editor-loader/editor.action | userName: user | referer: URL 2015-02-09 09:12:28,273 WARN [http-8090-52] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr -- url: /apps/wiki/plugins/macrobrowser/browse-macros.action | userName: user | referer: URL 2015-02-09 09:12:33,557 WARN [http-8090-52] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr -- url: /apps/wiki/display/SPC/Home | userName: user | referer: URL 2015-02-09 09:12:33,590 WARN [http-8090-52] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr -- url: /apps/wiki/display/SPC/Home | page: 12208 | userName: user | referer: URL | action: viewpage 2015-02-09 09:12:33,594 ERROR [http-8090-52] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/pages/viewpage.vm' -- url: /apps/wiki/display/SPC/Home | page: 12208 | userName: user | referer: URL| action: viewpage java.lang.RuntimeException: Error rendering template for decorator root at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:328) at org.apache.velocity.Template.merge(Template.java:235) at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:91) at com.atlassian.xwork.results.ProfiledVelocityResult.doExecute(ProfiledVelocityResult.java:21) at com.atlassian.confluence.setup.webwork.EncodingVelocityResult.doExecute(EncodingVelocityResult.java:48) .... at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: Error rendering template for decorator page at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) .... Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/decorators/includes/pageprefs.vm' at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:404) at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.getResource(ConfigurableResourceManager.java:308) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400) ....

Diagnosis

Enable Safe Mode in Confluence and check if you have similar problem after that or not.

Cause

This issue might be related to the themes in Confluence. There are some warning message in the logs before the error that shows which theme is the problematic theme.

Solution

Workaround

  1. Enable Safe Mode in Confluence.

  2. Disable Third Party Themes (if any).

Resolution

  • Upgrade to the latest compatible version of Third Party Themes.

  • Use Default Themes of Confluence.

Updated on May 22, 2025

Still need help?

The Atlassian Community is here for you.