2017-03-09 7 views
1

Laravel 4 프로젝트에서 composer update을 사용하려고합니다. 그것은 실패하고 반환 다음Laravel 4 프로젝트에서 작곡가를 업데이트하는 데 문제가 발생했습니다.

PHP Fatal error: Call to undefined function Illuminate\Database\Eloquent\class_uses_recursive() in /home/dev.habbocreate.com/bootstrap/compiled.php on line 6416 
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Call to undefined function Illuminate\\Database\\Eloquent\\class_uses_recursive()","file":"\/home\/dev.habbocreate.com\/bootstrap\/compiled.php","line":6416}}Script php artisan clear-compiled handling the post-update-cmd event returned with error code 255 

가 나는 또한 composer dump-autoload 다음도 composer.lock을 삭제하고 여기에

{ 
    "name": "laravel/laravel", 
    "description": "The Laravel Framework.", 
    "keywords": ["framework", "laravel"], 
    "license": "MIT", 
    "require": { 
     "laravel/framework": "4.2", 
     "hisorange/bbcoder": "dev-master", 
     "orchestra/imagine": "2.2.x", 
     "teepluss/gateway": "1.x", 
     "yangqi/htmldom": "dev-master", 
     "nubs/random-name-generator": "^1.0" 
    }, 
    "autoload": { 
     "classmap": [ 
      "app/commands", 
      "app/controllers", 
      "app/models", 
      "app/database/migrations", 
      "app/database/seeds", 
      "app/tests/TestCase.php" 
     ] 
    }, 
    "scripts": { 
     "post-install-cmd": [ 
      "php artisan clear-compiled", 
      "php artisan optimize" 
     ], 
     "post-update-cmd": [ 
      "php artisan clear-compiled", 
      "php artisan optimize" 
     ], 
     "post-create-project-cmd": [ 
      "php artisan key:generate" 
     ] 
    }, 
    "config": { 
     "preferred-install": "dist" 
    }, 
    "minimum-stability": "stable" 
} 

것은 그것은 나에게 I를 말하고 내 composer.json 파일 년대 vendors 폴더는 다음

을 reupdating, 업데이트 시도 더 많은 설명을 추가 할 필요가 있지만 충분히 긴 문장을 만들면 충분히 게시하게됩니다.

+0

도'덤프 - autoload' 및 파일을 삭제 한 후 같은 오류? – Samsquanch

+0

@Samsquanch yep – Ben

+0

디렉토리에서 PHP 명령을 실행하는 중에이 오류가 발생합니까? 말해봐,'php artisan -v'? – Samsquanch

답변

0

좋아요, 나는 마침내 문제를 알아 냈습니다. 그것은 내가 필요한이에 있었기 때문이었다

"laravel/framework": "4.2",

대신

"laravel/framework": "4.2.*",