I've been happily building my site on my local machine but today when I tried to start it up, I can login and see the draft and published sites by clicking on the links in the bottom left corner but if I click on the CMS link, I get an error written on a properly themed web page > Sorry, there was an error handling your request. And in the browser address bar is > http://localhost/silverstripe/admin/show/1
I've tried dev/build?flush=1 and also just ?flush=1 and thinking it was just a problem with the CMS, I tried replacing the cms folder in root with a fresh copy and also the sapphire folder but doing that didn't change anything. I think the problem is related to a module I added, played around with and then removed. I also went into the database and removed some entries that were still there relating to that removed module.
Clicking on the published and draft site links shows slightly different pages. The published site has an extra navigation link across the top which is the module I removed. If I click on it, it shows a white screen with this >
SilverStripe diary module installed successfully, you can start writing your diary now.
Generated with the default ContentController.ss template
Any help about how I can get back into the CMS admin page would be much appreciated.