Cakephp 2.1.1 app is creating a lot of internal server errors. Whenever I restart apache it starts working again but goes down after a little while.
below is what I am getting on error log.
2012-04-13 13:13:52 Error: [MissingControllerException] Controller class GController could not be found.
#0 /home/commstrat2_web/html/roadconference/app/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
Can anyone figure out why?
UPDATE: Below is the error from the site that is very similar and has been copied across but different error from the log
2012-04-13 12:57:27 Error: [MissingControllerException] Controller class AssetsController could not be found.
#0 /home/commstrat2_web/html/nbnsummit/app/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2012-04-13 12:57:27 Error: [MissingControllerException] Controller class ImagesController could not be found.
#0 /home/commstrat2_web/html/nbnsummit/app/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
My solution is adding following line to my
app/Config/routes.phpfile. It redirects user to my main page.