Welcome Guest, Not a member yet? Register   Sign In
Fatal error on setting CI_ENVIRONMENT to testing
#1

I just downloaded the latest CI in my local xampp server. I was using php 8.2. When I changed the variable  CI_ENVIRONMENT = testing in  .env file. I got the below error:
Fatal error: Uncaught Error: Undefined constant "CodeIgniter\Config\SUPPORTPATH" in C:\xampp82\htdocs\imflancer\system\Config\AutoloadConfig.php:144 Stack trace: #0 C:\xampp82\htdocs\imflancer\system\Boot.php(244): CodeIgniter\Config\AutoloadConfig->__construct() #1 C:\xampp82\htdocs\imflancer\system\Boot.php(54): CodeIgniter\Boot::loadAutoloader() #2 C:\xampp82\htdocs\imflancer\public\index.php(56): CodeIgniter\Boot::bootWeb(Object(Config\Paths)) #3 {main} thrown in C:\xampp82\htdocs\imflancer\system\Config\AutoloadConfig.php on line 144

Requesting to check and fix the issue.
Reply
#2

As I know, testing is not for developing your files. It's more for the framework.
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply
#3

(This post was last modified: 06-16-2024, 12:13 PM by parthoru.)

(06-16-2024, 11:46 AM)ozornick Wrote: As I know, testing is not for developing your files. It's more for the framework.

I think all the errors should be handled. Thank you for your respond.
Reply
#4

See https://codeigniter.com/user_guide/gener...vironments
Reply




Theme © iAndrew 2016 - Forum software by © MyBB