Welcome Guest, Not a member yet? Register   Sign In
Displaying Errors
#1

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?
Reply
#2

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.
Reply
#3

Probably because class names are capitalized and CI didn’t find any “home” controller because its name is “Home”.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB