Some pages render blank after upgrade
Asked by Snorre Selmer:

After upgrading our Confluence from 4.3.1 to 6.7.2, some pages have stopped rendering.

If you go to the page, it shows as blank, but if you use the View Source option in Confluence, the content displays fine.

If you edit the page, the content is there, but saving the page doesn't do anything. Adding a few random characters to alter the content and then saving doesn't help either.

If I copy the content from the edit-page and paste it into a new page, it still renders as a blank page. If I copy the content from the "View Source"-window and paste it into a new page, it renders correctly.

Anyone here have an idea what's happening? Any way to fix this for all the affected pages in one go?


Answers:
author: Nic Brough -Adaptavist-
body: Pick one of the broken pages and have another look at the source. Do you have any macros that could be doing bad things? I've managed to break upgrades with "unmigrated wiki markup" and my own user macros more than once (especially my dodgy user macros that don't upgrade nicely)

comments: author: Snorre Selmer
body: As far as I can tell, there are no user macros in use on these pages. They only use bullet-point lists and tables from the Confluence GUI editor.


author: Nic Brough -Adaptavist-
body: Ok. I think we need to have a good look at the difference between these blank pages and one that works ok.

When they're coming out blank, is it everything that is blank, or just the content area? Is there any real content in the raw html of the page? (Use browser development tools to see the page source)


author: Snorre Selmer
body: Sorry for the lengthy delay on replying, been out sick for two weeks.

Inspecting the HTML in Chrome yields no page-content, so what is rendered is correct according to the HTML.

![Captures.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/20368iC374014C4DC56D87/image-size/large?v=v2&px=999 "Captures.PNG")

But when I "View Source" or "View Storage Format", the pop-up window displays the expected text correctly. The strange thing is that this seems to be a problem this user has with more pages on his personal space, but so far it's only this one user.

![Captures2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/20375i8511CD8E17CF42C8/image-size/large?v=v2&px=999 "Captures2.PNG")Here's a screen-capture with the "View Source" window content partially visible on the right:Could it be a problem with Active Object indexing? User privileges?


author: Snorre Selmer
body: OK, digging into the HTML I see that the \<div id="main-content" class="wiki-content"\> section is just plain missing from all the pages on this user's user-space. Why this is, I have *no* idea...


author: Snorre Selmer
body: I feel a bit stupid for not connecting the dots sooner, but I found the root cause.

After a bit of testing, we found this only affected this user's personal Space, all pages, even newly created ones.

Then today it hit me. I went into the Space "Look and Feel" and found that (as I suspected) the Page Layout had some legacy edits to it, and after a "Reset to Default", everything rendered just fine.

Case closed, thanks for all the help, apologies for being a bit dim. ;)


author: Snorre Selmer
body: I'll do a diff on the content when I get back to work next week (busted my back today, out for a week).