CodeIgniter Forums
public/index.php (54) require inexistent /Boot.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: public/index.php (54) require inexistent /Boot.php (/showthread.php?tid=92558)



public/index.php (54) require inexistent /Boot.php - lwmirkk - 03-05-2025

Hi!
Most recent Codeigniter version (4.6.0 ?)
In appstarter/public/index.php (54)
This line:
PHP Code:
// LOAD THE FRAMEWORK BOOTSTRAP FILE
require $paths->systemDirectory '/Boot.php'

The problem, the file doesn`t exists and an error is shown:
PHP Code:
/appstarter/app/Config/../../vendor/codeigniter4/framework/system/Boot.php 

The only file that exists with a similar name in this folder is : bootstrap.php
I installed the codeigniter via composer.
Sorry if noob question, I have only one other CI4 (older one) working with PHP 7.4 and many other CI3 projects in other websites (PHP 7.4), trying to adapt to the new CI4.6.
Thanks a lot! Smile


RE: public/index.php (54) require inexistent /Boot.php - captain-sensible - 03-05-2025

from 4.5.8 to 4.6.0 these are the files that chnaged

Code:
app/Config/Cache.php
app/Config/Constants.php
app/Config/Database.php
app/Config/Feature.php
app/Config/Format.php
app/Config/Kint.php
app/Config/Routing.php
app/Config/Security.php
app/Views/errors/html/debug.css
app/Views/errors/html/error_400.php

preload.php

public/index.php

spark

navigate to  CI4-yourprojectname/vendor/codeigniter4/framework

you should see :
Code:
[andrew@darkstar public]$ cd /srv/http/CI4-CMS/vendor/codeigniter4/
[andrew@darkstar codeigniter4]$ ls
framework
[andrew@darkstar codeigniter4]$ tree -L 1 framework
framework
├── LICENSE
├── README.md
├── app
├── composer.json
├── env
├── phpunit.xml.dist
├── preload.php
├── public
├── spark
├── system
├── tests
└── writable

6 directories, 7 files
[andrew@darkstar codeigniter4]$

so lets take the spark . rename your spark to say spark_bk the one in your  webroot/public    copy the spark from

CI4-prpject/vendor/codeigniter4/framework  to your webroot/public

in your webroot/app/config      rename  Feature.php  to Feature_bk.php then  copy Feature.php  from    CI4-project/vendor/codeigniter4/framework/app/Config  to  webroot/app/config

go through list and update each file.

ps file yo usay is missing exists on mine at :
/vendor/codeigniter4/framework/system/Boot.php

if you have the appstarter, easy way of updating is from a terminal

prompt$ cd webroot

prompt$ composer update


do you have composer installed