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

Nasir Uddeen picture Nasir Uddeen · Sep 9, 2019 · Viewed 31k times · Source

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

Codeigniter 4 shows an error when I run the CI4 application, How I resolve?

Changes:

public $baseURL = 'http://ci.local';


public $baseURL = 'http://localhost:8080';
public $indexPage = '';

Answer

Chibueze Agwu picture Chibueze Agwu · Oct 16, 2019

This work for me try it Go to app directory then to boot directory you will see production.php file.

That is: app => Config => Boot => production.php

Change the ini_set('display_errors', '0') to ini_set('display_errors', '1').

Warning: When in production change back to initial ini_set('display_errors', '0')

Or

you can rename your file env in your project directory to .env after that open it and edit. Search for # CI_ENVIRONMENT = production remove # and change production to development