![]() |
I tried to publish my project on shared hosting and I get this error:
Code: Fatal error: Uncaught Error: Undefined constant "CodeIgniter\ENVIRONMENT" in /home/geotechd/domains/exampleproject.dev/ExampleProjectProd/vendor/codeigniter4/framework/system/CodeIgniter.php:583 Stack trace: #0 /home/geotechd/domains/exampleproject.dev/ExampleProjectProd/vendor/codeigniter4/framework/system/CodeIgniter.php(203): CodeIgniter\CodeIgniter->bootstrapEnvironment() #1 /home/geotechd/domains/exampleproject.dev/public_html/index.php(55): CodeIgniter\CodeIgniter->initialize() #2 {main} thrown in /home/geotechd/domains/exampleproject.dev/ExampleProjectProd/vendor/codeigniter4/framework/system/CodeIgniter.php on line 583
Please read the manual before working with version 4.4
https://codeigniter4.github.io/userguide...le-changes
Put a copy from vendor/codeigniter4/framework/public/index.php to public/index.php > solved "Undefined constant "CodeIgniter\ENVIRONMENT" problem
Also checkout the changes in routes.php / routing.php |
Welcome Guest, Not a member yet? Register Sign In |