Welcome Guest, Not a member yet? Register   Sign In
Fatal error
#1

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
Reply
#2

Please read the manual before working with version 4.4
https://codeigniter4.github.io/userguide...le-changes
Reply
#3

(This post was last modified: 09-17-2023, 07:30 AM by Project Linde37.)

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
Bart Goossens
Project Linde37
[email protected]
Reply




Theme © iAndrew 2016 - Forum software by © MyBB