I find Replacing Your Preferences a real pain.
My pages panel was not working recently and to fix it I went to a old drive which had ID4 installed on and in that directory:
Applications>Adobe InDesign CS4>Plug-Ins>Layout
Found a file called:
This file I copied to the current drive to the same location and replaced the exciting file while InDesign was closed.
I then restarted InDesign and yay it worked.
Now this may or may not be an ideal way of doing thing, and would love some feedback of the pro and cons of it all but for now InDesign has all its panels working again.
Happy InDesigning all