Include macro broken after upgrade 3.5 > 5.0

I have a LOT of includes, and they're all showing this error:

Error rendering macro 'include' : The body of this ContentEntityObject ('Contacts') was 'BodyType:WIKI' but was expected to be 'BodyType:XHTML'

The documentation (for 4.0) talks about upgrading *user* macros, but surely the {include} macro is native to Confluence and should have been upgraded automatically to XHMTL?

2 answers

1 accepted

Could you give exact versions and plan of your upgrade?

Please see https://confluence.atlassian.com/display/DOC/Upgrading+Confluencestep 1 - if you've upgraded to version later than 5.0 it could cause problems.

Also please check your upgrade logs - maybe your upgrade failed in the middle - so not all document content was upgraded. Upgrade logs can be found according to the guide:

https://confluence.atlassian.com/display/DOC/Working+with+Confluence+Logs

Hi - thanks for responding. It's going from 3.5.16 to 5.0, and from there it will be upgraded to whatever the latest is (5.5?) I haven't got access to the logs, but will pass that over to the team upgrading.

0 vote
Wayne Wong Atlassian Team Aug 03, 2014

Hi Kathleen,

It might cause by html macro which is disabled by default for confluence 5.

Please kindly enable [HTML Macro|https://confluence.atlassian.com/display/DOC/Enabling+the+html-include+Macro] (with all the module enable). see if the problem fix?

Thank you.

Regards,


Wayne Wong

Hi Wayne, thanks for the tip - it was a failed installation, but I'll remember that for next time.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,176 views 13 19
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot