I’m encountering an issue while reopening my old project in CodeIgniter. When I run the spark command, I’m seeing the error message: ‘This “system/bootstrap.php” is no longer used. If you are seeing this error message, the upgrade is not complete. Please refer to the upgrade guide and complete the upgrade.’ Additionally, I’m getting a PHP Fatal error: ‘Undefined constant “ENVIRONMENT”‘. Could you please advise on how to resolve these issues?
PS C:xampphtdocspenerimaan_bs> php spark serve This "system/bootstrap.php" is no longer used. If you are seeing this error message, the upgrade is not complete. Please refer to the upgrade guide and complete the upgrade. See https://codeigniter4.github.io/userguide/installation/upgrade_450.html PHP Fatal error: Uncaught Error: Undefined constant "ENVIRONMENT" in C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemCommon.php:777 Stack trace: #0 C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemDebugExceptions.php(140): log_message('critical', 'Error: {message...', Array) #1 [internal function]: CodeIgniterDebugExceptions->exceptionHandler(Object(Error)) #2 {main} thrown in C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemCommon.php on line 777
Fatal error: Uncaught Error: Undefined constant "ENVIRONMENT" in C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemCommon.php:777 Stack trace: #0 C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemDebugExceptions.php(140): log_message('critical', 'Error: {message...', Array) #1 [internal function]: CodeIgniterDebugExceptions->exceptionHandler(Object(Error)) #2 {main} thrown in C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemCommon.php on line 777 PHP Fatal error: Uncaught Error: Undefined constant "ENVIRONMENT" in C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemCommon.php:777 Stack trace: #0 C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemDebugExceptions.php(140): log_message('critical', 'ErrorException:...', Array) #1 C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemDebugExceptions.php(252): CodeIgniterDebugExceptions->exceptionHandler(Object(ErrorException)) #2 [internal function]: CodeIgniterDebugExceptions->shutdownHandler() #3 {main} thrown in C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemCommon.php on line 777
Fatal error: Uncaught Error: Undefined constant "ENVIRONMENT" in C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemCommon.php:777 Stack trace: #0 C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemDebugExceptions.php(140): log_message('critical', 'ErrorException:...', Array) #1 C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemDebugExceptions.php(252): CodeIgniterDebugExceptions->exceptionHandler(Object(ErrorException)) #2 [internal function]: CodeIgniterDebugExceptions->shutdownHandler() #3 {main} thrown in C:xampphtdocsPenerimaan_BSvendorcodeigniter4frameworksystemCommon.php on line 777
I attempted to reopen my old project in CodeIgniter and ran the spark command. I expected the project to load without issues, but instead, I encountered an error message stating ‘This “system/bootstrap.php” is no longer used’ and a PHP Fatal error about ‘Undefined constant “ENVIRONMENT”‘. I was expecting the project to initialize correctly. Could you please advise on how to resolve these errors?