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

Platform:

  • 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?

Thanks!

 

- 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
$body

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 

macroName:numberedheadings

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 8 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

85 views 2 4
Read article

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