Unable to move page to other space

Still need help?

The Atlassian Community is here for you.

Ask the community

This article does not apply to Confluence Cloud instances. Custom page layouts are restricted functionality in Confluence Cloud.

Problem

User unable to move pages from a specific space to another space. They will be seeing the below error:
 

 

Cause

User added a custom page layout for that specific space.

Click here to expand...
## PAGE SPECIFIC DECORATOR
## Here the context is the page. Modes are 'view', 'edit', 'edit-preview', 'view-information', and 'view-attachments'.
#set ($helper = $params.get("helper"))
#set ($mode = $params.get("mode"))
#set ($context = $params.get("context"))
#set ($confPage = $helper.page)
#infoPanelInitFromParams()
## GENERAL PAGE DECORATING BEGINS
#requireResourcesForContext("page")
#if ($mode != "edit" && $mode != "edit-preview")
    #parse ("/decorators/includes/content-navigation.vm")
#end
#if ($infoPanelRequired)
<content tag="sidebar">
    #infoPanel(true true true true)
</content>
#end
<div id="content" class="page $!mode">
    #parse ("/template/includes/actionerrors.vm")
    ## MODE SPECIFIC DECORATING BEGINS
    #*
        Display page based on mode: currently 'view', 'edit', 'preview-edit', 'info' and 'attachments.
        See the individual page templates (viewpage.vm, editpage.vm, etc.) for the setting of the mode parameter.
    *#
    ## VIEW
    #if ($mode == "view")
        #if ($space.personal)
            #set ($usernameFromSpaceKey = $spaceUtils.getUsernameFromPersonalSpaceKey($spaceKey))
            #if ($permissionHelper.canView($action.remoteUser, $action.getUser($usernameFromSpaceKey)))
                <content tag="show-personal-sidebar">true</content>
            #end
        #end
        #requireResourcesForContext("viewcontent")
        #set ($labelable = $page)
        #permitSearchEngines()
        #if ($helper.isHistoricalVersion())
            <content tag="suppressPdfLink">true</content>
        #end
        #parse ("/decorators/includes/page-metadata.vm")
        #if ($helper.isHistoricalVersion() || $helper.action.navigatingVersions)
            #versionInfo()
        #end
#if ($action.isPrintableVersion() == false)
<style>
.spacetree * ul{
padding-left:0px;
margin-left: 0px;
}
.spacetree * li{
margin-left: 5px;
padding-left:5px;
}
</style>
<table cellspacing="2" cellpadding="5" width="100%">
<tr>
<td valign="top" align="left" width="22%" bgcolor="#F9F9F9" class="noprint">
<div class="tabletitle">Table of Contents</div>
<div class="spacetree">
#includePage($helper.spaceKey "TreeNavigation")
</div>
</td>
<td valign="top" align="left" width="78%" class="pagecontent">
<div class="wiki-content">
$body
</div>
</td>
</tr>
</table>
#else
<div class="wiki-content">
    $body
</div>
#end
        #trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
        #parse ("/labels/labels-editor.vm")
        #renderChildren()
        #applyDecorator("root")
            #decoratorParam("sitemeshPage" $sitemeshPage)
            #decoratorParam("page" $page)
            #decoratorParam("context" "comments")
        #end
    ## EDIT || PREVIEW-EDIT
    #elseif ($mode == "edit" || $mode == "edit-preview")
        $body
    ## INFO
    #elseif ($mode == "view-information")
        $body
    ## ATTACHMENTS
    #elseif ($mode == "view-attachments" || $mode == "move-attachments")
        $body
    ## FOR CUSTOM WEB-ITEMS
    #else
        $body
    #end
    ## MODE SPECIFIC DECORATING ENDS
</div>
## GENERAL PAGE DECORATING ENDS
#parse ("/pages/page-breadcrumbs.vm")
#menuMacros_renderBrowseMenu()

Workaround

  1. Navigate to the page you want to move
  2. Click move and then click Browse
    • E.g Choose a space and click space home (New location:admin>admin’s Home)

Resolution

Remove the custom layout

  • Navigate to {{<Confluence Base URL>/spaces/listdecorators.action?key=spacekey}}, and under *Content Layouts*, restore the default *Page Layout*. 
Last modified on Nov 2, 2018

Was this helpful?

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