Don't use subpage as a classname on the body tag in 5.5 and below

Permalink 1 user found helpful
I ran into a pretty weird bug today using a free marketplace theme. I didn't see any other posts about it, but did eventually track it down.

What was happening is on sub pages of the home page, when you launched the properties dialog the whole page would go blank. No javascript errors, no reloading the page to just display a tools file, just blank white. The other dialogs worked fine, properties on the home page worked fine. I couldn't figure it out.

Changing themes fixed it, so I thought it was in the code somewhere and started copying html from the marketplace theme into plain yogurt to see if it still happened. It was happening there too, and as I removed more and more of the content, it was still happening.

What I finally tracked it down to was the fact that the theme was using 'subpage' as a class name for the body tag. When you launch the properties dialog, it hides a table header with the class name 'subpage' and when it does that, it was hiding the whole body - hence the blank white page.

Renaming to use sub or sub-page fixes it. This error doesn't happen in 5.6, the permissions dialog is totally different there. But if you have an older install and this problem, that's how to fix it. Hope this helps someone else out in the future.

hereNT