Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Search for "unknown macro" errors

Thomas Schubert August 27, 2019

Our confluence system will be migrated to another instance soon. I've been asked to test my pages on a test-system. There some plugins seem not to be installed. On my pages (using those not installed macros) that is indicated by "unknown macro: '<macroname>'".

As there are hundreds of pages I would like to automate my search and get the pages containing this error displayed directly.

 

Con you help me?

2 answers

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2019

You can't search for "unknown macro", as there's nothing to search for.  The display of "unknown macro" really is just a display meaning "you've removed the macro functions so I don't know what to do with this directive"

You will need to open up the source view of a page showing this error, find the bit naming the macro and then search for that.  That still may not work, you usually have to have the plugin that provided it installed (even if it's unlicenced), or you can cheat a little and create a user macro with that name.  You'll then be able to search for it.

0 votes
Sébastien Dumon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 2, 2022

Hi, I have a kind of a solution for you. 

You need to install the Search And Replace plugin (it work on our 7.13.7 version). It's not expensive (and very usefull by the way).

With that you can search content in the Storage Format directly. So when you find an "unknown macro", go to the Storage Format of the page, get its "ac name" parameter. Then go in the plugin and search for that, it will find all the occurence of this macro.

You can search in a Space or in the whole instance (for you case the space is sufficent).

And you can replace the macro name if you want with this plugin or exceprt its content to put it in simple text. (plugin is very usefull as i told you).

So with that you can find all the occurence of an already find Unknown macro.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events