CodeIgniter Forums
How to have more detailed error - 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: How to have more detailed error (/showthread.php?tid=74548)



How to have more detailed error - kris2 - 10-07-2019

In CI3 We had lines or error

now with CI4 I only have Whoops!

We seem to have hit a snag. Please try again later...

And I know something is wrong but I have no idea where to search.

How to have like CI3  error lines


RE: How to have more detailed error - ciadmin - 10-07-2019

https://codeigniter4.github.io/userguide/installation/troubleshooting.html#what-s-with-an-unhelpful-whoops-page


RE: How to have more detailed error - kris2 - 10-07-2019

thank you for the link. I read it and understand

You can see the error in the debug toolbar display by setting your environment to “development” (in .env), and reloading the page.

What is the debut toolbar? I don't have that. How to configure the .env?


RE: How to have more detailed error - ciadmin - 10-07-2019

https://codeigniter4.github.io/userguide/general/environments.html?highlight=environment#the-environment-constant


RE: How to have more detailed error - kris2 - 10-09-2019

Thank you
I try to put

SetEnv CI_ENVIRONMENT development in the .htaccess
SetEnv CI_ENVIRONMENT development
But no change. It is the same


CI_ENVIRONMENT = developpement in the .env file and I got that message


The application environment is not set correctly.


RE: How to have more detailed error - MGatner - 10-09-2019

You have spelled “development” two different ways in your post. Make sure you have it correct in your .env file - also make sure you have the period “.” in front of the file (the version that ships is simply “env”). If those are set correctly and you still get the error make sure you have removed all the other methods of setting it (like .htaccess) and are using an updated copy of the framework.