Welcome Guest, Not a member yet? Register   Sign In
Error message
#1

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...
Reply
#2

(This post was last modified: 02-19-2020, 12:35 AM by sv3tli0.)

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..
Best VPS Hosting : Digital Ocean
Reply
#3

(This post was last modified: 02-19-2020, 08:04 AM by InsiteFX.)

You also need to rename it to .env

Code:
# CI_ENVIRONMENT = production
CI_ENVIRONMENT = development
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

(This post was last modified: 02-19-2020, 08:19 AM by John_Betong.)

@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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB