CodeIgniter Forums
installation problem for v4.4.8 - 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: installation problem for v4.4.8 (/showthread.php?tid=90905)



installation problem for v4.4.8 - nfaiz - 05-20-2024

Im using composer to install previous version

Code:
composer create-project codeigniter4/appstarter:4.4.8 myproject

After that I'm running this command

Code:
php spark env development

and get this error

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"

Then I manually created the .env file.

But the error is still there.

Please help


RE: installation problem for v4.4.8 - captain-sensible - 05-21-2024

i think you may have omitted information :

our quoting upgrade instructions from 4.4.8 to 4.5.0 so im assming you ran from a command prompt:
composer update.

you dont say where you have put codeigniter and on which O.S

Anyway the upgrade instructions say, go and look for the vendor directory , then is subdirectory path something like framework/codeigniter . keep searching till you find public then copy index.php and spark and drop them into the public directory of of web dev root directory, which will repalce old ones.

to fire up it should be from a terminal :
php spark server

tjhat should fire up inbuilt server


RE: installation problem for v4.4.8 - nfaiz - 05-22-2024

Thank you


RE: installation problem for v4.4.8 - kenjis - 05-22-2024

It is recommended to use the latest version, but if you need to install v4.4.8 appstater now,
see https://codeigniter.com/user_guide/installation/installing_composer.html#installing-previous-versions