Macros renaming issue
Asked by MS Anjum:

Hi there,  
We are using Confluence Server 7.13 on our two separate environments, i.e. Pre-release and Production.  
We use the pre-release instance for editing purposes, and export the final content (space) on the production instance for our customers.

The issue we have been facing is that everything runs smoothly on the pre-release environment, but when we export a space to the production instance, all the page macros (be its the built-in ones or our custom user macros) are renamed to "Children Display". Though they work differently as per their type, but when we edit any page, all the macros are shown with the "Children Display" name. Like if we are using 5 different macros on a page, we get to see "Children Display" five times on that page when we edit it.

Is there any turnaround to fix that issue?

Many thanks.

Regards,

Salman


Answers:
author: Nic Brough -Adaptavist-
body: How re you doing the "export a space to production"?

Also, when you edit one of the affected pages, how do the macro calls appear in the editor? Do they display as "children display" as well?

comments: author: MS Anjum
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

We use the "Full XML Export" option from our pre-release instance to create an XML of that space, and then import that XML in the production instance via General Configurations\>Backup \& Restore. Furthermore, for the XML files that are less than 25MB, we use the **Upload a site or space export file** section, while for 25MB+ files we use **Import from the home directory.**

The used macros inside a page work fine on production as per their intended purpose (in non-edit mode), for exp, a Live Search macro allows you to search, a Recently Updated macro shows you recently updated pages, and so on. The problem starts, when we edit a page, all the used macros start appearing as "Children Display".

Here are the screenshots of a test page:

**Non-Edit view of the page**

![Non-Edit-Mode.png](https://community.atlassian.com/t5/image/serverpage/image-id/159918iD08F2F992E667DA1/image-size/large?v=v2&px=999 "Non-Edit-Mode.png")

**Editor view of the page**

![Edit-Mode.png](https://community.atlassian.com/t5/image/serverpage/image-id/159919iA123E3E28A864201/image-size/large?v=v2&px=999 "Edit-Mode.png")


author: MS Anjum
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

The problem seems weird as we were previously using the Confluence 7.4.12 version on the production and pre-release environments and facing this issue.

But now we are using Confluence 7.13 versions on both the pre-release and production instances.

Before upgrading the production, we cleaned up all the confluence data (database, cache, etc) from the production and went for a fresh installation of 7.13 from the scratch.

And the problem still persists on the production.. :( :)


author: Nic Brough -Adaptavist-
body: Ok, that is screaming "bug" to me. (Probably in the import, my guess is that the import is writing the wrong thing into the name of the macro in the page body, and Confluence is then defaulting to showing the name of the first macro it finds).

I think this needs to go to Atlassian for investigation


Tags: confluence-server

macro

rename

server