2014-09-17 16 views
8

Niedawno zmieniłem 2 linie w widoku i pchnąłem kod do github. Kiedy wdrożony na laravel Forge (po około 2 tygodniach bez aktualizacji) & mam następujący błąd:Laravel Composer nie aktualizuje/instaluje

"error":{ 
    "type":"ErrorException", 
    "message":"Declaration of Illuminate\\View\\Engines\\CompilerEngine::handleViewException() should be compatible with Illuminate\\View\\Engines\\PhpEngine::handleViewException($e)", 
    "file":"\/home\/forge\/default\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Engines\/CompilerEngine.php", 
    "line":100 
} 

nie mogę nawet zrobić php artisan -v bez uzyskania tego błędu. Następnie uruchomiłem: composer diagnosis i otrzymałem:

Checking composer.json: FAIL 
require.damianromanowski/simplecdn : unbound version constraints (dev-master) should be avoided 
require.roumen/feed : unbound version constraints (dev-master) should be avoided 
require.themonkeys/error-emailer : unbound version constraints (dev-master) should be avoided 
require.abodeo/laravel-stripe : unbound version constraints (dev-master) should be avoided 
require.mattbrown/laracurl : unbound version constraints (dev-master) should be avoided 
require.themonkeys/cachebuster : unbound version constraints (dev-master) should be avoided 
Checking platform settings: FAIL 
The xdebug extension is loaded, this can slow down Composer a little. 
Disabling it when using Composer is recommended, but should not cause issues beyond slowness. 
Checking git settings: OK 
Checking http connectivity: OK 
Checking disk free space: OK 
Checking composer version: OK 

Jak mogę usunąć ten błąd? Nigdy wcześniej tego nie widziałem i nie wiem dokładnie, co jest nie tak.

Odpowiedz

23

Dzięki uprzejmości AndreasLutro w #laravel:

spróbować usunąć bootstrap/compiled.php.

To naprawiło to dla mnie.

3

Właściwym sposobem rozwiązania tego problemu jest uruchamianie php artisan clear-compiled przed uruchomieniem composer install lub composer update

Można dodać następujące do composer.json w sekcji „skrypty” Jeśli chcesz, aby to automatyczne:

"pre-install-cmd" :[ 
    "php artisan clear-compiled" 
], 
"pre-update-cmd": [ 
    "php artisan clear-compiled" 
], 
Powiązane problemy