How can I recover content of page with "Unknown macro: 'numberedheadings'"


  • Confluence 5.10.2
  • CentOS 7.2.1511

We see several pages that seem to be empty with the content:

Unknown macro: 'numberedheadings'

If I look back in the history of the page I see one change where the page goes from lots of content to just the error message.

I'm assuming that the reason all content is gone is that this container works as a macro, ie. the original content of the page was pasted into the macro and that it is stored as XHTML content inside an XML element that's in a different namespace?

Is there some way to recover the XHTML content?  Or is the version before the macro was introduced the last version that is available?

It is possible that Confluence has been upgraded after the numberedheadings was introduced on the page, and that the numberedheadings macro wasn't present in the new confluence at the time of the import. If this is the case, would that affect whether the content is actually present or not?



- Steinar

1 answer

0 vote
Stephen Deutsch Community Champion Jan 23, 2018

Well, the easiest way to fix the issue would be to just reinstall the Numbered Headings app. It's free anyways, and compatible with most versions of Confluence.

Another option would be to create a user macro with the macro name being "numberedheadings", body type "Rendered", and template code as

## @noparams

After saving, you should be able see the content again, and then you can copy/paste the content to get it out of the macro. You can find all pages that have instances of the numberedheadings macro by searching for 


Thanks! I think I will try to temporarily install the missing macro, but haven't gotten around to it yet.

I will post back on this thread with the results when/if I get around to it.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

606 views 20 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you