Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

342 views 23 8
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