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



Error message - ByteHive - 02-18-2020

hey i am trying to view the error mesaage from codeigniter but i only get 
Whoops!

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



RE: Error message - sv3tli0 - 02-19-2020

Are you in production mode ?
Usually such message should get out when you are in prod mod (to hide error details)

At your ENV file you must set that you are in dev mode..


RE: Error message - InsiteFX - 02-19-2020

You also need to rename it to .env

Code:
# CI_ENVIRONMENT = production
CI_ENVIRONMENT = development



RE: Error message - John_Betong - 02-19-2020

@ByteHive,

The recommended ways to change between "production" and "development" is to use either the .env or .htaccess files.

A quick alternative fix is to add the following to the start of index.php file:

Code:
<?php // index.php
$_SERVER['CI_ENVIRONMENT'] = 'development'; // "production", "test"

Also make sure the writable folder is writable.