YuriiChmil
YuriiChmil

Reputation: 481

app/bootstrap.php.cache : failed to open stream: No such file or directory

After clone project from github i got next error:

Warning: require_once(C:\OpenServer\domains\MyBlog.test\web/../app/bootstrap.php.cache): failed to open stream: No such file or directory in C:\OpenServer\domains\MyBlog.test\web\app_dev.php on line 20

Fatal error: require_once(): Failed opening required 'C:\OpenServer\domains\MyBlog.test\web/../app/bootstrap.php.cache' (include_path='.;c:/openserver/modules/php/PHP-5.5;c:/openserver/modules/php/PHP-5.5/PEAR/pear') in C:\OpenServer\domains\MyBlog.test\web\app_dev.php on line 20

Unfortunately in .gitignore file i founded next note:

/app/bootstrap.php.cache
/var/bootstrap.php.cache
/bin/*
!bin/console
!bin/symfony_requirements

So, how to solve this problem?.

I execute php composer.phar update command, but it's not helped.

Upvotes: 7

Views: 27101

Answers (1)

John Cartwright
John Cartwright

Reputation: 5084

You probably need to run composer to generate the bootstrap file and download vendors.

In your composer.json you will see a build bootstrap command that gets executed for you.

"post-install-cmd": [
    "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap"
],

Upvotes: 17

Related Questions