Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to open system/bootstrap.php #2193

Closed
muradmustafayev opened this issue Sep 6, 2019 · 7 comments
Closed

Fail to open system/bootstrap.php #2193

muradmustafayev opened this issue Sep 6, 2019 · 7 comments
Assignees

Comments

@muradmustafayev
Copy link

Time to time I see this warning when try install devstarter via Composer.
I run this command from documentation:
composer create-project codeigniter4/devstarter my-awesome-project -s dev --no-dev

Warning: require(E:\OSPanel\domains\localhost\magazine\app\Config/../../system/bootstrap.php): failed to open stream: No such file or directory in E:\OSPanel\domains\localhost\magazine\spark on line 43

@lonnieezell
Copy link
Member

Does this happen every time? Sounds like just occasionally, which will make it a bugger to debug. Anything common on your end when that happens that you can think of?

@MGatner
Copy link
Member

MGatner commented Sep 6, 2019

Also, it's unclear to me if you get that error while installing from composer (unlikely) or after having installed. And when you get the error, have you run composer upgrade first? or is this a fresh run after install?

@jim-parry jim-parry added this to the 4.0.0-rc.2 milestone Sep 8, 2019
@muradmustafayev
Copy link
Author

It's fresh install.
I've tried composer ugrade, update with and without --no-dev flag. The result stays the same

I started try CI4 3-4 months ago. Since then had problem and moved to appstarter. But after Migration major update, started to use devapstarter with Composer and worked as expected. Now again this happening

dev-error

@lonnieezell
Copy link
Member

@jim-parry I feel we've ran into this before. The devstarter repo is pointing to the wrong system location again. Needs to point to vendor/codeigniter4/codeigniter4/system.

@jim-parry
Copy link
Contributor

Just pushed a change to app/Config/Paths.php, which I thought I had fixed before but obviously didn't :(
Does "composer update" fix the problem now?

@jim-parry
Copy link
Contributor

Actually, I am not sure that composer update will help, The change is in the devstart repo, which was probably cloned. That would mean pulling from it, which might clobber work a developer has done.
So, the problem may be fixed for new cloners of the repo, but existing ones might have to manually update app/Config/Paths.php

@jim-parry
Copy link
Contributor

So, problem fixed for future users of devstarter; workaroung above for existing users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants