2015-05-25 9 views
5

progetto After clone da github ho ottenuto prossimo errore:app/bootstrap.php.cache: failed to open stream: No such file or directory

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

Purtroppo in .gitignore file fondato nota successiva:

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

Quindi, come risolvere questo problema ?.

Eseguo il comando di aggiornamento php composer.phar, ma non è stato aiutato.

risposta

15

Probabilmente è necessario eseguire composer per generare il file di bootstrap e scaricare i fornitori.

Nel tuo compositore.json vedrai un comando di bootstrap di build che viene eseguito per te.

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

Mi ha aiutato! Grazie! – YuriiChmil

+4

Il comando che devi eseguire per risolvere il problema è 'composer install' –

+0

@ JoëlSalamin Prima che funzionasse per me, dovevo aggiungere la directory var agli extra https://knpuniversity.com/screencast/symfony3-upgrade/new-dir-struttura # mobile-bootstrap-php-cache –

Problemi correlati