How to fix error on site load

In case someone lands here from Google, I had the same 'NoneType' object has no attribute 'queryMethodID' error and in my case I was able to understand where it came from. Maybe a different problem from OP, but might still be useful to other people.

I was removing Archetypes from a website and following @fulv recommendation. When doing so I saw a fulluninstall profile and used that instead of the recommended one. This caused the error: the call to queryUtility(ITypesTool).getTypeInfo(self) was often returning None for dexterity content types.

To solve the problem I restored an older version of the ZODB and ran the correct uninstall profile.