Codeigniter 4 Debugging |
I used to use CI3 then moved over to Laravel. I am keen to start my new game project using CI4, but am battling to get around some of issues.
The main issue that I am having is the debugging mode in development. Code: #-------------------------------------------------------------------- I have set the CI_ENVIRONMENT = development and I have set the base URL. When there is an issue on the page, I get no details of the issue, simply a message stating Whoops. I have tried the app on Laragon, Xampp and now on Wampserver. I get no details of errors at all. Please help
05-28-2023, 08:59 AM
(This post was last modified: 05-28-2023, 10:02 AM by captain-sensible. Edit Reason: as jimmy cricket may have once said "wait there's mooore" )
check its not the usual suspects. if on Linux make sure
Code: sudo chmod 777 witable _R Code: public $baseURL = 'http://127.0.0.7/'; baecuase it set each dev to a url via /etc/hosts then also virtual host config in app/config/Logger.php Code: public $threshold = 9; you can have a play around in controllers with a try catch block. For blogs I have a log in, by admin and session. Then i have a code block, to help inform me of errors Code: try So i have a view called info2.php used specifically for errors (for dev) if exception is caught i find it nice to output to a view . IN the view I have Code: <h11><?php echo $infoException;?></h11> at least its better than a blank page lol
If that is your actual .env file then you need to uncomment the CI_ENVIRONMENT and app.baseURL lines
PHP Code: CI_ENVIRONMENT = development
(05-28-2023, 05:27 AM)Mark Morcom Wrote: I used to use CI3 then moved over to Laravel. I am keen to start my new game project using CI4, but am battling to get around some of issues.You need to uncomment (remove the # before) the CI_ENVIRONMENT and app.baseURL lines to get it to work. |
Welcome Guest, Not a member yet? Register Sign In |