CodeIgniter Forums
Fatal error on setting CI_ENVIRONMENT to testing - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Fatal error on setting CI_ENVIRONMENT to testing (/showthread.php?tid=91098)



Fatal error on setting CI_ENVIRONMENT to testing - parthoru - 06-16-2024

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.


RE: Fatal error on setting CI_ENVIRONMENT to testing - ozornick - 06-16-2024

As I know, testing is not for developing your files. It's more for the framework.


RE: Fatal error on setting CI_ENVIRONMENT to testing - parthoru - 06-16-2024

(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.


RE: Fatal error on setting CI_ENVIRONMENT to testing - kenjis - 06-16-2024

See https://codeigniter.com/user_guide/general/environments.html#the-defined-environments