Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-18437

Macro browser and Preview tab appears to be broken for all themes EXCEPT shipped default theme

      Using the macro browser in any theme except the shipped default theme will result in a pop up box saying:

      There has been an error loading the macro browser.
      Please try again or see your system administrator.
      

      Errors in the logs appear as:

      2010-02-03 09:42:19,938 ERROR [http-8080-5] [atlassian.confluence.servlet.ConfluenceServletDispatcher] serviceAction There is no Action mapped for namespace /pages/undefined/plugins/macrobrowser and action name browse-macros
       -- url: /pages/undefined/plugins/macrobrowser/browse-macros.action | userName: admin | referer: http://localhost:8080/pages/editpage.action?pageId=753673
      

      This seems to occur regardless of whether the theme is third party or supported. Switching to the default theme resolves the problem.

      In addition pressing on the preview tab causes the preview to Spin forever for all themes but the default theme (e.g. leftnav theme, clickr theme

            [CONFSERVER-18437] Macro browser and Preview tab appears to be broken for all themes EXCEPT shipped default theme

            Hi,

            We are currently testing Confluence 3.2.1. Macro browser/Preview tab/Image uploader seem to be broken in spaces using the Confluence Classic Theme. Moreover, when 'Browse Project' is clicked in such a space the following System error is thrown

            ---------------------------------------------------------------------------------
            java.lang.RuntimeException: Error rendering template for decorator root
            at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:211)

            caused by: java.lang.RuntimeException: Error rendering template for decorator space
            at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:211)

            caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayableItems' in class com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager threw exception java.lang.NullPointerException at components/classic/space.vmd[line 51, column 120]
            at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)

            caused by: java.lang.NullPointerException
            at com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager.makeContext(ConfluenceWebInterfaceManager.java:97)

            ---------------------------------------------------------------------------------

            In such a case, not able to go to Space Admin at all to change the Theme!
            Please can you advise whats wrong here?

            Note -
            #parse ("/template/includes/global-settings.vm")
            code is already there in main.vmd file.

            Regards

            jira-fxit.support db added a comment - Hi, We are currently testing Confluence 3.2.1. Macro browser/Preview tab/Image uploader seem to be broken in spaces using the Confluence Classic Theme. Moreover, when 'Browse Project' is clicked in such a space the following System error is thrown --------------------------------------------------------------------------------- java.lang.RuntimeException: Error rendering template for decorator root at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:211) caused by: java.lang.RuntimeException: Error rendering template for decorator space at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:211) caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayableItems' in class com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager threw exception java.lang.NullPointerException at components/classic/space.vmd [line 51, column 120] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) caused by: java.lang.NullPointerException at com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager.makeContext(ConfluenceWebInterfaceManager.java:97) --------------------------------------------------------------------------------- In such a case, not able to go to Space Admin at all to change the Theme! Please can you advise whats wrong here? Note - #parse ("/template/includes/global-settings.vm") code is already there in main.vmd file. Regards

            Hi Petra,

            Honestly, you could almost place the line anywhere in body and it will work. We place it underneath the 'full-height-container' div.

            <body #onLoadAttr() id="com-atlassian-confluence" class="$!sitemeshPage.getProperty("page.bodyClass")">
            <div id="page">
            <div id="full-height-container">
            $!settingsManager.globalSettings.customHtmlSettings.afterBodyStart
            
            #set ($username = $sitemeshPage.getProperty("page.username"))
            #set ($spaceKey = $sitemeshPage.getProperty("page.spacekey"))
            
            #parse ("/template/includes/status-i18n.vm")
            #parse ("/template/includes/global-settings.vm")
            
            #displayGlobalMessages($spaceKey)
            
            ## CONTENT DIV BEGINS
            #if($req.getParameter('moved') == 'true')
                #set ($headerClass = "moved")
            #end
            <div id="header" class="$!headerClass">
            

            Cheers,
            Brian

            Brian Nguyen (Inactive) added a comment - Hi Petra, Honestly, you could almost place the line anywhere in body and it will work. We place it underneath the 'full-height-container' div. <body #onLoadAttr() id="com-atlassian-confluence" class="$!sitemeshPage.getProperty("page.bodyClass")"> <div id="page"> <div id="full-height-container"> $!settingsManager.globalSettings.customHtmlSettings.afterBodyStart #set ($username = $sitemeshPage.getProperty("page.username")) #set ($spaceKey = $sitemeshPage.getProperty("page.spacekey")) #parse ("/template/includes/status-i18n.vm") #parse ("/template/includes/global-settings.vm") #displayGlobalMessages($spaceKey) ## CONTENT DIV BEGINS #if($req.getParameter('moved') == 'true') #set ($headerClass = "moved") #end <div id="header" class="$!headerClass"> Cheers, Brian

            Petra LaFrese added a comment - - edited

            I am getting the same messages in my logs in v 3.2 - Re the comment on 2/3/10: where in main.vmd should the line be placed?

            Petra LaFrese added a comment - - edited I am getting the same messages in my logs in v 3.2 - Re the comment on 2/3/10: where in main.vmd should the line be placed?

            While using the Clickr theme, this also seems to affect the display of Browse > Pages, Tree. The 'loading...' spins indefinitely. Just another thing to verify when the fix is released.

            Maleko Taylor (Inactive) added a comment - While using the Clickr theme, this also seems to affect the display of Browse > Pages, Tree. The 'loading...' spins indefinitely. Just another thing to verify when the fix is released.

            Partha added a comment - - edited

            Please refer to the Knowledge Base for the patch for 3.1.1 for the leftNav and Clickr Theme

            Macro browser, Insert Image and Preview are broken in Confluence 3.1.1

            Partha added a comment - - edited Please refer to the Knowledge Base for the patch for 3.1.1 for the leftNav and Clickr Theme Macro browser, Insert Image and Preview are broken in Confluence 3.1.1

            Fixed in clickr and left-nav (still needs releasing).

            To fix for other themes, make sure to include the following in main.vmd:

            #parse ("/template/includes/global-settings.vm")
            

            Brian Nguyen (Inactive) added a comment - Fixed in clickr and left-nav (still needs releasing). To fix for other themes, make sure to include the following in main.vmd : #parse ( "/template/includes/global-settings.vm" )

              bnguyen Brian Nguyen (Inactive)
              mseager Michael S
              Affected customers:
              3 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: