Displaying Errors - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Displaying Errors (/showthread.php?tid=80275) |
Displaying Errors - 68thorby68 - 10-11-2021 I think there is an error in my config, as I'm not getting the nicely configured error page with a breakdown of the error stack when there is a general error in my code. All I'm getting is the following where path is my domian: Fatal error: Uncaught ErrorException: include(/home/path/app/Views/errors/html/error_exception.php): failed to open stream: No such file or directory in /home/path/system/Debug/Exceptions.php:299 Stack trace: #0 /home/path/system/Debug/Exceptions.php(299): CodeIgniter\Debug\Exceptions->errorHandler(2, 'include(/home/t...', '/path/...', 299, Array) #1 /home/path/system/Debug/Exceptions.php(299): include() #2 /home/path/system/Debug/Exceptions.php(172): CodeIgniter\Debug\Exceptions->render(Object(ErrorException), 500) #3 /home/path/system/Debug/Exceptions.php(223): CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #4 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler() #5 {main} thrown in /home/path/system/Debug/Exceptions.php on line 299 Does anyone have any ideas? RE: Displaying Errors - 68thorby68 - 10-11-2021 It seems the problem was in the config->routes file $routes->setDefaultController('Home'); set to $routes->setDefaultController('home'); I'm not sure why but when set to $routes->setDefaultController('Home'); --- Home capitalised. All back working. RE: Displaying Errors - includebeer - 10-12-2021 Probably because class names are capitalized and CI didn’t find any “home” controller because its name is “Home”. |