Are you on a .php page with a site defined? Have you tried deleting the cache .dat file in your user's configuration folder?
I'm going to have to debug this with you directly. This shouldn't be happening, so there is something wrong with the installation or site definition causing this problem.