Welcome Guest, Not a member yet? Register   Sign In
CI4.6 Error Pages
#1

(This post was last modified: 02-26-2025, 02:30 PM by SoccerGuy3.)

Since upgrading to CI4.6 I have noticed that the error pages thrown in Development aren't formatted like they were previously. Prior to 4.6 they were neatly organized and should the full error messages. Now I am getting a brown bar at the top with version info (which is very helpful) and then a bunch of truncated lines of the error messages in a large font. Then at the bottom is one window with some code related to the part of CI that has the error (not the code I wrote, but the CI Code). What happened to the old, helpful error pages? Did I do something wrong in the install? Can they be restored?[Image: screenshot-2025-02-26-at-1-20-07%E2%80%AFpm.png]

After some more digging, I found a tab at the very bottom called "response" and this was in it. Seems related, but no idea how to fix:

Code:
Fatal error: Uncaught Error: Class "Services" not found in /Users/marcpinnell/Sites/cattle/app/Views/errors/html/error_exception.php:228 Stack trace: #0 /Users/marcpinnell/Sites/cattle/vendor/codeigniter4/framework/system/Debug/BaseExceptionHandler.php(266): include() #1 /Users/marcpinnell/Sites/cattle/vendor/codeigniter4/framework/system/Debug/BaseExceptionHandler.php(269): CodeIgniter\Debug\BaseExceptionHandler->CodeIgniter\Debug\{closure}() #2 /Users/marcpinnell/Sites/cattle/vendor/codeigniter4/framework/system/Debug/ExceptionHandler.php(116): CodeIgniter\Debug\BaseExceptionHandler->render(Object(ErrorException), 500, '/Users/marcpinn...') #3 /Users/marcpinnell/Sites/cattle/vendor/codeigniter4/framework/system/Debug/Exceptions.php(162): CodeIgniter\Debug\ExceptionHandler->handle(Object(ErrorException), Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response), 500, 1) #4 /Users/marcpinnell/Sites/cattle/vendor/codeigniter4/framework/system/Debug/Exceptions.php(317): CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException)) #5 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler() #6 {main} thrown in /Users/marcpinnell/Sites/cattle/app/Views/errors/html/error_exception.php on line 228
Reply
#2

There seems to be a bug in your code. The error shows undefined array key 0 which means you are calling an index array that doesn't exist, you should check before the index array is called to avoid ErrorException.
@xxxx[{::::::::::::::::::::::::::::::::>
Reply
#3

(02-26-2025, 07:51 PM)warcooft Wrote: There seems to be a bug in your code. The error shows undefined array key 0 which means you are calling an index array that doesn't exist, you should check before the index array is called to avoid ErrorException.

I know there is a bug in the code, that's why it is throwing up the error page. My question was why does the error page look like that? Prior to version 4.6 the page was way easier to read and had a different format. Was hoping to restore the old style error page.
Reply
#4

Did you follow the upgrade documentation?
There have been changes to some error pages and CSS, please follow the guide and make sure you have made all the necessary changes
Reply
#5

(02-27-2025, 09:40 AM)serialkiller Wrote: Did you follow the upgrade documentation?
There have been changes to some error pages and CSS, please follow the guide and make sure you have made all the necessary changes

As far as I can tell, yes I did. But guess not if others are not seeing this, I must have missed a step. Was kinda hoping for someone to point me at that step! Smile
Reply




Theme © iAndrew 2016 - Forum software by © MyBB