teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

変更した

2019/11/25 04:11

投稿

Shichi7
Shichi7

スコア35

title CHANGED
File without changes
body CHANGED
@@ -11,102 +11,126 @@
11
11
  エラー内容
12
12
 
13
13
  ```
14
- $ composer dump-autoload
14
+ [ec2-user@ project]$ $ composer update
15
+ Loading composer repositories with package information
16
+ Updating dependencies (including require-dev)
17
+ Package operations: 26 installs, 67 updates, 0 removals
18
+ - Installing kylekatarnls/update-helper (1.2.0): Downloading (100%)
19
+ - Updating symfony/polyfill-ctype (v1.9.0 => v1.12.0): Downloading (100%)
20
+ - Updating vlucas/phpdotenv (v2.5.1 => v2.6.1): Downloading (100%)
21
+ - Updating symfony/css-selector (v4.1.4 => v4.4.0): Downloading (100%)
22
+ - Updating tijsverkoyen/css-to-inline-styles (2.2.1 => 2.2.2): Downloading (100%)
23
+ - Updating symfony/polyfill-php72 (v1.9.0 => v1.12.0): Downloading (100%)
24
+ - Updating symfony/polyfill-mbstring (v1.9.0 => v1.12.0): Downloading (100%)
25
+ - Updating symfony/var-dumper (v4.1.4 => v4.4.0): Downloading (100%)
26
+ - Updating symfony/routing (v4.1.4 => v4.4.0): Downloading (100%)
27
+ - Updating symfony/process (v4.1.4 => v4.4.0): Downloading (100%)
28
+ - Installing symfony/polyfill-intl-idn (v1.12.0): Downloading (100%)
29
+ - Installing symfony/mime (v4.4.0): Downloading (100%)
30
+ - Updating symfony/http-foundation (v4.1.4 => v4.4.0): Downloading (100%)
31
+ - Installing symfony/event-dispatcher-contracts (v1.1.7): Downloading (100%)
32
+ - Updating symfony/event-dispatcher (v4.1.4 => v4.4.0): Downloading (100%)
33
+ - Updating psr/log (1.0.2 => 1.1.2): Downloading (100%)
34
+ - Updating symfony/debug (v4.1.4 => v4.4.0): Downloading (100%)
35
+ - Installing symfony/polyfill-php73 (v1.12.0): Downloading (100%)
36
+ - Installing symfony/error-handler (v4.4.0): Downloading (100%)
37
+ - Updating symfony/http-kernel (v4.1.4 => v4.4.0): Downloading (100%)
38
+ - Updating symfony/finder (v4.1.4 => v4.4.0): Downloading (100%)
39
+ - Installing symfony/service-contracts (v1.1.8): Downloading (100%)
40
+ - Updating symfony/console (v4.1.4 => v4.4.0): Downloading (100%)
41
+ - Updating doctrine/lexer (v1.0.1 => 1.0.2): Downloading (100%)
42
+ - Updating egulias/email-validator (2.1.5 => 2.1.11): Downloading (100%)
43
+ - Installing symfony/polyfill-iconv (v1.12.0): Downloading (100%)
44
+ - Updating swiftmailer/swiftmailer (v6.1.3 => v6.2.3): Downloading (100%)
45
+ - Installing symfony/translation-contracts (v1.1.7): Downloading (100%)
46
+ - Updating symfony/translation (v4.1.4 => v4.4.0): Downloading (100%)
47
+ - Updating nesbot/carbon (1.25.0 => 1.25.3): Downloading (100%)
48
+ - Updating monolog/monolog (1.23.0 => 1.25.2): Downloading (100%)
49
+ - Updating league/flysystem (1.0.47 => 1.0.57): Downloading (100%)
50
+ - Updating erusev/parsedown (1.7.1 => 1.7.3): Downloading (100%)
51
+ - Updating dragonmantank/cron-expression (v2.2.0 => v2.3.0): Downloading (100%)
52
+ - Updating doctrine/inflector (v1.3.0 => 1.3.1): Downloading (100%)
53
+ - Updating laravel/framework (v5.6.38 => v5.6.39): Downloading (100%)
54
+ - Installing ralouphie/getallheaders (3.0.3): Downloading (100%)
55
+ - Updating guzzlehttp/psr7 (1.4.2 => 1.6.1): Downloading (100%)
56
+ - Updating guzzlehttp/guzzle (6.3.3 => 6.4.1): Downloading (100%)
57
+ - Updating aws/aws-sdk-php (3.67.12 => 3.121.0): Downloading (100%)
58
+ - Updating aws/aws-sdk-php-laravel (3.1.0 => 3.4.0): Downloading (100%)
59
+ - Updating doctrine/event-manager (v1.0.0 => 1.1.0): Downloading (100%)
60
+ - Updating doctrine/cache (v1.8.0 => 1.9.1): Downloading (100%)
61
+ - Updating doctrine/dbal (v2.8.0 => v2.9.3): Downloading (100%)
62
+ - Updating fideloper/proxy (4.0.0 => 4.2.1): Downloading (100%)
63
+ - Updating nikic/php-parser (v4.0.3 => v4.3.0): Downloading (100%)
64
+ - Updating jakub-onderka/php-console-color (0.1 => v0.2): Downloading (100%)
65
+ - Updating jakub-onderka/php-console-highlighter (v0.3.2 => v0.4): Downloading (100%)
66
+ - Updating psy/psysh (v0.9.8 => v0.9.9): Downloading (100%)
67
+ - Updating laravel/tinker (v1.0.7 => v1.0.10): Downloading (100%)
68
+ - Updating league/flysystem-aws-s3-v3 (1.0.19 => 1.0.23): Downloading (100%)
69
+ - Updating fzaninotto/faker (v1.8.0 => v1.9.0): Downloading (100%)
70
+ - Updating mockery/mockery (1.1.0 => 1.2.4): Downloading (100%)
71
+ - Updating filp/whoops (2.2.1 => 2.5.0): Downloading (100%)
72
+ - Updating nunomaduro/collision (v2.0.3 => v2.1.1): Downloading (100%)
73
+ - Updating sebastian/resource-operations (1.0.0 => 2.0.1): Downloading (100%)
74
+ - Updating sebastian/exporter (3.1.0 => 3.1.2): Downloading (100%)
75
+ - Updating sebastian/environment (3.1.0 => 4.2.3): Downloading (100%)
76
+ - Updating sebastian/diff (3.0.1 => 3.0.2): Downloading (100%)
77
+ - Updating phpunit/php-timer (2.0.0 => 2.1.2): Downloading (100%)
78
+ - Updating theseer/tokenizer (1.1.0 => 1.1.3): Downloading (100%)
79
+ - Updating phpunit/php-token-stream (3.0.0 => 3.1.1): Downloading (100%)
80
+ - Updating phpunit/php-code-coverage (6.0.7 => 6.1.4): Downloading (100%)
81
+ - Updating webmozart/assert (1.3.0 => 1.5.0): Downloading (100%)
82
+ - Updating phpdocumentor/reflection-common (1.0.1 => 2.0.0): Downloading (100%)
83
+ - Updating phpdocumentor/type-resolver (0.4.0 => 1.0.1): Downloading (100%)
84
+ - Updating phpdocumentor/reflection-docblock (4.3.0 => 4.3.2): Downloading (100%)
85
+ - Updating doctrine/instantiator (1.1.0 => 1.3.0): Downloading (100%)
86
+ - Updating phpspec/prophecy (1.8.0 => 1.9.0): Downloading (100%)
87
+ - Updating myclabs/deep-copy (1.8.1 => 1.9.3): Downloading (100%)
88
+ - Updating phpunit/phpunit (7.3.5 => 7.5.17): Downloading (100%)
89
+ - Updating lcobucci/jwt (3.2.4 => 3.3.1): Downloading (100%)
90
+ - Updating league/event (2.1.2 => 2.2.0): Downloading (100%)
91
+ - Updating league/oauth2-server (7.2.0 => 7.4.0): Downloading (100%)
92
+ - Updating phpseclib/phpseclib (2.0.11 => 2.0.23): Downloading (100%)
93
+ - Updating symfony/psr-http-message-bridge (v1.1.0 => v1.2.0): Downloading (100%)
94
+ - Updating zendframework/zend-diactoros (1.8.6 => 1.8.7): Downloading (100%)
95
+ - Installing bacon/bacon-qr-code (1.0.3): Downloading (100%)
96
+ - Installing simplesoftwareio/simple-qrcode (2.0.0): Downloading (100%)
97
+ - Installing sabberworm/php-css-parser (8.3.0): Downloading (100%)
98
+ - Installing phenx/php-svg-lib (v0.3.3): Downloading (100%)
99
+ - Installing phenx/php-font-lib (0.5.1): Downloading (100%)
100
+ - Installing dompdf/dompdf (v0.8.3): Downloading (100%)
101
+ - Installing barryvdh/laravel-dompdf (v0.8.5): Downloading (100%)
102
+ - Installing league/oauth1-client (1.7.0): Downloading (100%)
103
+ - Installing laravel/socialite (v3.3.0): Downloading (100%)
104
+ - Installing laravelcollective/html (v5.6.10): Downloading (100%)
105
+ - Installing myclabs/php-enum (1.7.2): Downloading (100%)
106
+ - Installing maximebf/debugbar (v1.15.1): Downloading (100%)
107
+ - Installing barryvdh/laravel-debugbar (v3.2.8): Downloading (100%)
108
+ - Installing facebook/webdriver (1.7.1): Downloading (100%)
109
+ - Installing laravel/dusk (v4.0.5): Downloading (100%)
110
+ - Installing squizlabs/php_codesniffer (3.5.2): Downloading (100%)
111
+ symfony/polyfill-intl-idn suggests installing ext-intl (For best performance)
112
+ symfony/event-dispatcher-contracts suggests installing psr/event-dispatcher ()
113
+ symfony/service-contracts suggests installing symfony/service-implementation ()
114
+ dompdf/dompdf suggests installing ext-imagick (Improves image processing performance)
115
+ dompdf/dompdf suggests installing ext-gmagick (Improves image processing performance)
116
+ maximebf/debugbar suggests installing kriswallsmith/assetic (The best way to manage assets)
117
+ maximebf/debugbar suggests installing predis/predis (Redis storage)
118
+ facebook/webdriver suggests installing ext-SimpleXML (For Firefox profile creation)
119
+ Writing lock file
15
120
  Generating optimized autoload files
121
+ Carbon 1 is deprecated, see how to migrate to Carbon 2.
122
+ https://carbon.nesbot.com/docs/#api-carbon-2
123
+ You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
16
124
  > Illuminate\Foundation\ComposerScripts::postAutoloadDump
17
125
  > @php artisan package:discover
18
126
  PHP Fatal error: Uncaught ReflectionException: Class config does not exist in /var/www/html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php:767
19
127
  Stack trace:
20
128
  #0 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(767): ReflectionClass->__construct('config')
21
129
  #1 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(646): Illuminate\Container\Container->build('config')
22
- #2 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve('config', Array)
23
- #3 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(734): Illuminate\Container\Container->make('config', Array)
24
- #4 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php(1210): Illuminate\Foundation\Application->make('config')
25
- #5 /var/www/html/project/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php(57): Illuminate\Container\ in /var/www/html/project/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 767
130
+
26
131
  Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
27
132
  ```
28
133
 
29
134
  AWSにとってあった動く頃の1年くらい前のAMIイメージから復元し、何もせずにまずcomposer updateをするだけでartisanが動かなくなります。今までは、普通にcomposer updateできていました。
30
135
 
31
- おそらく、composer.jsonに含まれているモジュールのどれかがアップデートすることで問題を引き起こしていると考えます。
136
+ おそらく、composer.jsonに含まれているモジュールのどれかがアップデートすることで問題を引き起こしていると考えます。
32
-
33
- ```
34
- {
35
- "name": "laravel/laravel",
36
- "description": "The Laravel Framework.",
37
- "keywords": ["framework", "laravel"],
38
- "license": "MIT",
39
- "type": "project",
40
- "require": {
41
- "php": "^7.1.3",
42
- "aws/aws-sdk-php-laravel": "~3.0",
43
- "barryvdh/laravel-dompdf": "^0.8.3",
44
- "doctrine/dbal": "^2.7",
45
- "fideloper/proxy": "^4.0",
46
- "laravel/framework": "5.6.*",
47
- "laravel/passport": "^6.0",
48
- "laravel/socialite": "^3.0",
49
- "laravel/tinker": "^1.0",
50
- "laravelcollective/html": "^5.4.0",
51
- "league/flysystem-aws-s3-v3": "~1.0",
52
- "myclabs/php-enum": "^1.6",
53
- "simplesoftwareio/simple-qrcode": "~2",
54
- "kylekatarnls/laravel-carbon-2": "^1.0.0",
55
- "nesbot/carbon": "2.0.0-beta.2 as 1.25.0"
56
- },
57
- "require-dev": {
58
- "barryvdh/laravel-debugbar": "^3.2",
59
- "filp/whoops": "^2.0",
60
- "fzaninotto/faker": "^1.4",
61
- "mockery/mockery": "^1.0",
62
- "nunomaduro/collision": "^2.0",
63
- "phpunit/phpunit": "^7.0",
64
- "squizlabs/php_codesniffer": "^3.3"
65
- },
66
- "autoload": {
67
- "classmap": [
68
- "database/seeds",
69
- "database/factories"
70
- ],
71
- "psr-4": {
72
- "App\": "app/"
73
- }
74
- },
75
- "autoload-dev": {
76
- "psr-4": {
77
- "Tests\": "tests/"
78
- }
79
- },
80
- "extra": {
81
- "laravel": {
82
- "dont-discover": [
83
- ]
84
- }
85
- },
86
- "scripts": {
87
- "post-root-package-install": [
88
- "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
89
- ],
90
- "post-create-project-cmd": [
91
- "@php artisan key:generate"
92
- ],
93
- "post-autoload-dump": [
94
- "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
95
- "@php artisan package:discover"
96
- ],
97
- "phpcs": [
98
- "phpcs --standard=phpcs.xml --extensions=php ."
99
- ],
100
- "phpcbf": [
101
- "./vendor/bin/phpcbf --standard=./phpcs.xml"
102
- ]
103
- },
104
- "config": {
105
- "preferred-install": "dist",
106
- "sort-packages": true,
107
- "optimize-autoloader": true
108
- },
109
- "minimum-stability": "dev",
110
- "prefer-stable": true
111
- }
112
- ```