This issue should not happen often but when it does you will need to rename the configuration folder and remove all the installed extensions. If you do not remove all of the installed extensions after renaming the configuration folder you will cause the bad config to be recreated and have the problem still.