I have installed Grocery CRUD Enterprise using composer with the installer grocery-crud-enterprise-3.1.4-with-codeigniter-4.zip from the wizzard and I get the following error:
@php spark publish
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 …codeigniter4.github.io/userguide/installation/upgrade_450.html
PHP Fatal error: Uncaught Error: Undefined constant “ENVIRONMENT” in /var/www/abc/vendor/codeigniter4/framework/system/Common.php:777
Stack trace: #0 /var/www/krafft/vendor/codeigniter4/framework/system/Debug/Exceptions.php(140): log_message() #1 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler() #2 {main}
thrown in /var/www/abc/vendor/codeigniter4/framework/system/Common.php on line 777
And from accessing the web page:
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 …codeigniter4.github.io/userguide/installation/upgrade_450.html
Is it an issue with the composer installer or am I missing something ?
It is not reproducible from my side. This was happening at the previous version but now it is fixed. Are you sure that you’ve took it from scratch? I just downloaded it and it works as expected. In any case to solve your issue as per documentation of Codeigniter 4 Upgrading from 4.4.8 to 4.5.0 — CodeIgniter 4.5.1 documentation please do the following:
That’s weird. Is there anyone else have the same issue? @ywillener just out of curiosity, can you try again to download and just do a composer install? I didn’t change anything but just to make sure.
I have started from a snapshoot of my VM with a fresh LAMP install, reloaded the zip file and done a composer install --prefer-dist and I have the exact same error.