skip to Main Content

i just copy codeingiter 4 in my XAMPP for Linux 7.4.3 which have PHP Version 7.4.3
but getting error like
Whoops!

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

5

Answers


  1. Pleaase try to install using composer
    go to htdocs folder
    composer create-project codeigniter4/appstarter project-root -s rc
    replace project-root by your project folder name
    and then
    cd your_project_name

    Login or Signup to reply.
  2. Rename the env file as .env, then remove # from CI_ENVIRONMENT and modify

    CI_ENVIRONMENT = production 
    

    into

    CI_ENVIRONMENT = development
    
    Login or Signup to reply.
  3. By Defaults CI 4 comes with production platform so it not showing the errors on the frontend. To see the errors, Open .htaccess file from the root and then enter

    SetEnv CI_ENVIRONMENT development
    

    it change the environment to development
    the alternate way open .env file and then change the CI_ENVIRONMENT to development like that

    CI_ENVIRONMENT = development
    

    Remember don’t forget to remove # from the begining

    Login or Signup to reply.
  4. CodeIgniter starts up in production mode. This is a safety feature to keep your site a bit more secure in case settings are messed up once it is live. So first let’s fix that. Copy or rename the env file to .env. Open it up. Uncomment the line with CI_ENVIRONMENT on it, and change production to development:

    CI_ENVIRONMENT = development
    

    If you are using XAMPP, write extension = intl in the PHP file (php.ini).

    Login or Signup to reply.
  5. In Codeigniter 4 source code have a folder named

    writable

    , just update it’s access permission. Sometimes it’ll help to get rid of Whoops. Also can check the video for Ubuntu / Linux

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search