CodeIgniter Forums
display error message - 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: display error message (/showthread.php?tid=76610)



display error message - pws - 06-01-2020

Hello,
how i can know what's the error in my code if i see this: 
Whoops!

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

in file log i not see any detailed error!


RE: display error message - dave friend - 06-01-2020

(06-01-2020, 08:10 AM)pws Wrote: Hello,
how i can know what's the error in my code if i see this: 
Whoops!

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

in file log i not see any detailed error!

First, rename the file env to .env

Second, in that file, change the line
Code:
# CI_ENVIRONMENT = production
to
Code:
CI_ENVIRONMENT = development

You might like to change the line

Code:
# app.baseURL = ''

to
Code:
app.baseURL = 'http://your_domain.com'



RE: display error message - pws - 06-01-2020

thnaks it's solved