Have you tried manually deleting the files in the core/cache directory?
My only thought is that maybe you created the context but didn’t give the admin user access to that context via a Context Access ACL entry, but you don’t find out about it until you save something that clears the cache.
BTW, there’s a bug with cache corruption that’s fixed in MODx 2.0.8. That may be related.
My guess is that it’s a corrupted file in the cache. Deleting the files in core/cache/ is harmless. Just log out of the Manager first, and be careful not to delete the core directory.
You might want to clear your browser cache/cookies at the same time.
Okay I tried that. No difference.
I’m more and more suspecting that admin doesn’t have permission to view it. But like I was saying I’d have to go into the DB to fix that, but I don’t know what table/field I would be looking for.
Did you give any other users access to that context with a Context Access ACL entry? That would protect that context and hide it from the admin (who also might not be able to see that Context Access ACL entry any more -- not sure). Try adding the admin Super User to all user groups with an authority level (role) of admin Super User.
better than clearing the cache is try tools -> flush permissions.
we’ve spent the better half of a day working with contexts (2.0.8-pl), having all sorts of problems... including and not limited to, being completely locked out of the manager (because of a wigged out context), having pages on the front end disappear after clearing the cache (become visible again when refreshing the page if logged in as admin), losing entire context trees as you’ve mentioned.
just quietly :
There are bugs with: contexts, caching, and user permissions over more than one domain. The new context bugged when I was updating an access permission on it (threw a php error in the logs) and from there, because the administrator account needs permission to view a context (I have absolutely no idea why anyone would NOT want to have this permission on a Superuser - this check shouldn’t even be there) you can’t log into the manager. Clearing cache / cookies / whatever, nothing - then after about half an hour it started working again - which I suspect is to do with the session... That’s my rant for the day.
Having said that, Revolution is bloody good, but there’s definately issues with the above, bugs that are pretty much impossible to report on. Want so desperately to work with contexts because they are perfect for what we are trying to do, but now, just very much afraid.