![]() |
Hello,
I installed the CI 4.4.5 on my server and all is working fine except when I enabled development mode in .env file "CI_ENVIRONMENT = development" it is not working as expected. Debug bar is appeared that means the development mode is enabled. When I tried to imitate some php erorr, then page is showing only "Whoops! ...". I see the error details in a log file (writable/logs). I know that it should also be appeared in a webpage with detailed error tracing (it worked in previous releases). What I need to configure to see the error trace details in webpage? Thanks in advance, best regards, Romans
01-29-2024, 05:50 AM
(This post was last modified: 01-29-2024, 05:55 AM by captain-sensible. Edit Reason: extra extra )
have you got in .env
Code: logger.threshold = 9 what i do to make sure for specific elements in a controller (whilst in development) is something like : Code: try in a view called info2.php i have Code: <?php echo $infoException;?> So in the controller the exception is got and passed and rendered out to a view (01-29-2024, 05:50 AM)captain-sensible Wrote: have you got in .env Thanks for the suggestion, already tried to set error level to 9, but it's not helps. (I also restarted a php-fpm process on server for sure). I suspect that can be related to some server settings but log file have the error message that means the php did not hide it. I will check controller and view and try your suggestions.
Finally I solved it - was really related to the server settings. I'm using a Fastpanel at first time and I was not familiar to all settings possibilities.
A global php setting display_errors was set to 1 but it did not helps. I found that each site created in fast panel has own php settings. I found the same setting display_errors and it was not set to any value. I set it to 1 and now all works fine - CI errors appeared in page. May be this helps to someone. Best regards, Romans
@romzine Do you mean the following line does not work?
https://github.com/codeigniter4/CodeIgni...nt.php#L14 Or you have customized "app/Config/Boot/development.php"? (01-29-2024, 10:33 PM)kenjis Wrote: @romzine Do you mean the following line does not work? Yes, that line does not work! It looks that the Fastpanel way how they manage php settings on multihost (multiple domains) server, for each virtual host, that overrides CI4 settings related to php ini. |
Welcome Guest, Not a member yet? Register Sign In |