I have upgrade confluence 3.x to 5.x
In earlier version(i.e. 3.x) I was using some macros, but in latest version (5.x) most of the macros are not compatible.
Currently in latest version it is showing following unknown macro error
bm1.jpg
So I want to remove these Unknown Macro from confluence
I do not want to uninstall plugin/macro from my system, just need to remove this error from my page.
From database can we write any query?
or any plugin to remove the Unknown Macro?
Community moderators have prevented the ability to post new answers.
Once you've done what Lukas suggests in terms of working out which macro is broken, I usually cheat quite a lot and write a "user macro" with the same name, and accepting the same parameters
This will:
I wouldn't try anything with SQL until the very last resort. Try the user macro tricks first
Hey Nic, great suggestion. All I need to do now is to have the new macro output whatever is actually contained within it... can you offer a suggestion for that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What does the old macro do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We’ve uninstalled theme press, and I am trying to not have to edit all of the pages where their macros were used. Those macros are:
Content Layer
|à Content Column
|----àContent Block
They aren’t doing anything at all, but are just there. The content within these macro blocks is normal Confluence content. The content is visible and renders correctly when editing the page, but not when simply viewing it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That makes sense. I suspect you can define a replacement "user macro" called "content layer" that simple passes $body through without any parameters. That will at least make the page viewable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you find out wich macro is causing the error by looking at the editor, you can remove all the macro(s) with this plugin:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Lukas, Is it working for Unknown Macro? I have tried this for used macro, it is working fine. But unknown macro it is not showing any occurrence.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Usually it is a macro that causes the 'unknown macro' text to appear on the page. When you edit the page, what is shown in the wysiwyg at the place of the "unkown macro " error ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
on edit page it is showing like {xyz}some text {xyz} After save the page it is showing Unknown Macro : xyz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your xyz is the name of the macro. The search and replace trick Lukas suggests will work, but you'll need to replace it with something that preserves your data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Nic, I want replace these unknown macro with blank space.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if the macro is wrapped in a wiki-markup block, the suggested opition won't work, I'm sorry. Your only option with search and replace would be to replace all wiki-markup macros, wich would also remove other wiki-markup macros with working content.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.