It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unknown macro 'code'


We upgrade Confluence to version 6.9.1 and after upgrade see pictures with text "Unknown macro 'code'" instead of code fragments in a many old pages. I try to find solution in documentation and knowledge base, but still not found it.

Please, help me to find and solve this problem.


2 answers

1 accepted

1 vote
Answer accepted

Look at the storage format (top-right "..." menu -> view storage format. That will tell you what the ID of macro there is at that page position.

Thanks, David!

I see that every macro has it's own ID

<ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="6b4bf71c-dbb5-4803-83bb-35be37a9ff61">


<ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="7400f6d0-ab47-41e6-bd59-81d3cc558014">

And I don't know how it can help me?

I was more checking it's the built-in "code" macro.

List all your plugins at https://BASE_URL/plugins/servlet/upm/manage/all and find the "code macro plugin". If you open it up does it say all modules enabled?

Great thanks, David!!
It was disabled, and work correctly just after "Enable"

Thanks a lot!!

Mine says "25 of 25 modules enabled" but I still get the same error.

We had the same problem after upgrading to Confluence 6.15.4 - I don't see why it should have been disabled by the upgrade process.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

269 views 9 6
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you