質問編集履歴
6
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,8 +22,6 @@
|
|
22
22
|
|
23
23
|
```php
|
24
24
|
|
25
|
-
//長かったのでデフォルトのコメントは削除しました。
|
26
|
-
|
27
25
|
//config/app_heroku.php
|
28
26
|
|
29
27
|
<?php
|
5
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,54 +6,12 @@
|
|
6
6
|
|
7
7
|
デプロイはうまくいったのですが、別のページに飛ぼうとするとAn Internal Error Has Occurredというエラーが出ます。
|
8
8
|
|
9
|
-
下はherokuのログです。
|
9
|
+
下はherokuのログです。調べても解決策がよくわかりません。よろしくお願いいたします。
|
10
10
|
|
11
11
|
|
12
12
|
|
13
13
|
--
|
14
14
|
|
15
|
-
2019-09-18T07:49:07.802400+00:00 app[web.1]: Cake\Cache\Cache::engine() - CORE/src/Cache/Cache.php, line 237
|
16
|
-
|
17
|
-
2019-09-18T07:49:07.802509+00:00 app[web.1]: Cake\Cache\Cache::read() - CORE/src/Cache/Cache.php, line 379
|
18
|
-
|
19
|
-
2019-09-18T07:49:07.802665+00:00 app[web.1]: Cake\Http\Session\CacheSession::read() - CORE/src/Http/Session/CacheSession.php, line 85
|
20
|
-
|
21
|
-
2019-09-18T07:49:07.802731+00:00 app[web.1]: session_start - [internal], line ??
|
22
|
-
|
23
|
-
2019-09-18T07:49:07.802855+00:00 app[web.1]: Cake\Http\Session::start() - CORE/src/Http/Session.php, line 356
|
24
|
-
|
25
|
-
2019-09-18T07:49:07.802988+00:00 app[web.1]: Cake\Http\Session::check() - CORE/src/Http/Session.php, line 410
|
26
|
-
|
27
|
-
2019-09-18T07:49:07.803148+00:00 app[web.1]: Cake\View\Helper\FlashHelper::render() - CORE/src/View/Helper/FlashHelper.php, line 75
|
28
|
-
|
29
|
-
2019-09-18T07:49:07.803225+00:00 app[web.1]: include - APP/Template/Layout/error.ctp, line 38
|
30
|
-
|
31
|
-
2019-09-18T07:49:07.803337+00:00 app[web.1]: Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1419
|
32
|
-
|
33
|
-
2019-09-18T07:49:07.803469+00:00 app[web.1]: Cake\View\View::_render() - CORE/src/View/View.php, line 1380
|
34
|
-
|
35
|
-
2019-09-18T07:49:07.803585+00:00 app[web.1]: Cake\View\View::renderLayout() - CORE/src/View/View.php, line 927
|
36
|
-
|
37
|
-
2019-09-18T07:49:07.803692+00:00 app[web.1]: Cake\View\View::render() - CORE/src/View/View.php, line 885
|
38
|
-
|
39
|
-
2019-09-18T07:49:07.803838+00:00 app[web.1]: Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 796
|
40
|
-
|
41
|
-
2019-09-18T07:49:07.804006+00:00 app[web.1]: Cake\Error\ExceptionRenderer::_outputMessage() - CORE/src/Error/ExceptionRenderer.php, line 369
|
42
|
-
|
43
|
-
2019-09-18T07:49:07.804160+00:00 app[web.1]: Cake\Error\ExceptionRenderer::render() - CORE/src/Error/ExceptionRenderer.php, line 244
|
44
|
-
|
45
|
-
2019-09-18T07:49:07.804388+00:00 app[web.1]: Cake\Error\Middleware\ErrorHandlerMiddleware::handleException() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 116
|
46
|
-
|
47
|
-
2019-09-18T07:49:07.804592+00:00 app[web.1]: Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 98
|
48
|
-
|
49
|
-
2019-09-18T07:49:07.804720+00:00 app[web.1]: Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
|
50
|
-
|
51
|
-
2019-09-18T07:49:07.804820+00:00 app[web.1]: Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
|
52
|
-
|
53
|
-
2019-09-18T07:49:07.804926+00:00 app[web.1]: Cake\Http\Server::run() - CORE/src/Http/Server.php, line 98
|
54
|
-
|
55
|
-
2019-09-18T07:49:07.805002+00:00 app[web.1]: [main] - ROOT/webroot/index.php, line 40
|
56
|
-
|
57
15
|
2019-09-18T07:49:07.805270+00:00 app[web.1]: 2019-09-18 16:49:07 Error: [Cake\Database\Exception] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'heroku_3568fb5fcfa8945.users' doesn't exist
|
58
16
|
|
59
17
|
|
4
コード一部消去
test
CHANGED
File without changes
|
test
CHANGED
@@ -386,22 +386,6 @@
|
|
386
386
|
|
387
387
|
],
|
388
388
|
|
389
|
-
// To enable this dedicated query log, you need set your datasource's log flag to true
|
390
|
-
|
391
|
-
'queries' => [
|
392
|
-
|
393
|
-
'className' => FileLog::class,
|
394
|
-
|
395
|
-
'path' => LOGS,
|
396
|
-
|
397
|
-
'file' => 'queries',
|
398
|
-
|
399
|
-
'url' => env('LOG_QUERIES_URL', null),
|
400
|
-
|
401
|
-
'scopes' => ['queriesLog'],
|
402
|
-
|
403
|
-
],
|
404
|
-
|
405
389
|
],
|
406
390
|
|
407
391
|
|
3
エラーコードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,17 +12,49 @@
|
|
12
12
|
|
13
13
|
--
|
14
14
|
|
15
|
-
2019-09-1
|
16
|
-
|
17
|
-
2019-09-1
|
18
|
-
|
19
|
-
2019-09-1
|
20
|
-
|
21
|
-
2019-09-1
|
22
|
-
|
23
|
-
2019-09-1
|
24
|
-
|
25
|
-
2019-09-1
|
15
|
+
2019-09-18T07:49:07.802400+00:00 app[web.1]: Cake\Cache\Cache::engine() - CORE/src/Cache/Cache.php, line 237
|
16
|
+
|
17
|
+
2019-09-18T07:49:07.802509+00:00 app[web.1]: Cake\Cache\Cache::read() - CORE/src/Cache/Cache.php, line 379
|
18
|
+
|
19
|
+
2019-09-18T07:49:07.802665+00:00 app[web.1]: Cake\Http\Session\CacheSession::read() - CORE/src/Http/Session/CacheSession.php, line 85
|
20
|
+
|
21
|
+
2019-09-18T07:49:07.802731+00:00 app[web.1]: session_start - [internal], line ??
|
22
|
+
|
23
|
+
2019-09-18T07:49:07.802855+00:00 app[web.1]: Cake\Http\Session::start() - CORE/src/Http/Session.php, line 356
|
24
|
+
|
25
|
+
2019-09-18T07:49:07.802988+00:00 app[web.1]: Cake\Http\Session::check() - CORE/src/Http/Session.php, line 410
|
26
|
+
|
27
|
+
2019-09-18T07:49:07.803148+00:00 app[web.1]: Cake\View\Helper\FlashHelper::render() - CORE/src/View/Helper/FlashHelper.php, line 75
|
28
|
+
|
29
|
+
2019-09-18T07:49:07.803225+00:00 app[web.1]: include - APP/Template/Layout/error.ctp, line 38
|
30
|
+
|
31
|
+
2019-09-18T07:49:07.803337+00:00 app[web.1]: Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1419
|
32
|
+
|
33
|
+
2019-09-18T07:49:07.803469+00:00 app[web.1]: Cake\View\View::_render() - CORE/src/View/View.php, line 1380
|
34
|
+
|
35
|
+
2019-09-18T07:49:07.803585+00:00 app[web.1]: Cake\View\View::renderLayout() - CORE/src/View/View.php, line 927
|
36
|
+
|
37
|
+
2019-09-18T07:49:07.803692+00:00 app[web.1]: Cake\View\View::render() - CORE/src/View/View.php, line 885
|
38
|
+
|
39
|
+
2019-09-18T07:49:07.803838+00:00 app[web.1]: Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 796
|
40
|
+
|
41
|
+
2019-09-18T07:49:07.804006+00:00 app[web.1]: Cake\Error\ExceptionRenderer::_outputMessage() - CORE/src/Error/ExceptionRenderer.php, line 369
|
42
|
+
|
43
|
+
2019-09-18T07:49:07.804160+00:00 app[web.1]: Cake\Error\ExceptionRenderer::render() - CORE/src/Error/ExceptionRenderer.php, line 244
|
44
|
+
|
45
|
+
2019-09-18T07:49:07.804388+00:00 app[web.1]: Cake\Error\Middleware\ErrorHandlerMiddleware::handleException() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 116
|
46
|
+
|
47
|
+
2019-09-18T07:49:07.804592+00:00 app[web.1]: Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 98
|
48
|
+
|
49
|
+
2019-09-18T07:49:07.804720+00:00 app[web.1]: Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
|
50
|
+
|
51
|
+
2019-09-18T07:49:07.804820+00:00 app[web.1]: Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
|
52
|
+
|
53
|
+
2019-09-18T07:49:07.804926+00:00 app[web.1]: Cake\Http\Server::run() - CORE/src/Http/Server.php, line 98
|
54
|
+
|
55
|
+
2019-09-18T07:49:07.805002+00:00 app[web.1]: [main] - ROOT/webroot/index.php, line 40
|
56
|
+
|
57
|
+
2019-09-18T07:49:07.805270+00:00 app[web.1]: 2019-09-18 16:49:07 Error: [Cake\Database\Exception] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'heroku_3568fb5fcfa8945.users' doesn't exist
|
26
58
|
|
27
59
|
|
28
60
|
|
2
ういか事項
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,11 +2,31 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
上記の記事
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
上記の記事の通りにやりました。
|
6
|
+
|
7
|
+
デプロイはうまくいったのですが、別のページに飛ぼうとするとAn Internal Error Has Occurredというエラーが出ます。
|
8
|
+
|
9
|
+
下はherokuのログです。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
--
|
14
|
+
|
15
|
+
2019-09-17T06:36:06.045312+00:00 app[web.1]: 10.81.161.51 - - [17/Sep/2019:06:36:05 +0000] "GET /users/add HTTP/1.1" 500 1137 "http://portfolio100.herokuapp.com/users/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
|
16
|
+
|
17
|
+
2019-09-17T06:36:06.028450+00:00 heroku[router]: at=info method=GET path="/users/add" host=portfolio100.herokuapp.com request_id=413d1fc3-632a-4bc7-9fbe-a4b29a791d5f fwd="114.185.97.24" dyno=web.1 connect=0ms service=135ms status=500 bytes=1437 protocol=http
|
18
|
+
|
19
|
+
2019-09-17T06:36:06.244782+00:00 heroku[router]: at=info method=GET path="/css/style.css" host=portfolio100.herokuapp.com request_id=5187032e-b197-4e46-af17-647233126466 fwd="114.185.97.24" dyno=web.1 connect=0ms service=1ms status=304 bytes=129 protocol=http
|
20
|
+
|
21
|
+
2019-09-17T06:36:06.241855+00:00 app[web.1]: 10.81.161.51 - - [17/Sep/2019:06:36:06 +0000] "GET /css/style.css HTTP/1.1" 304 - "http://portfolio100.herokuapp.com/users/add" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
|
22
|
+
|
23
|
+
2019-09-17T06:36:06.439933+00:00 app[web.1]: 10.35.234.123 - - [17/Sep/2019:06:36:06 +0000] "GET /css/base.css HTTP/1.1" 304 - "http://portfolio100.herokuapp.com/users/add" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
|
24
|
+
|
25
|
+
2019-09-17T06:36:06.443152+00:00 heroku[router]: at=info method=GET path="/css/base.css" host=portfolio100.herokuapp.com request_id=fd60c17b-513f-46ac-a3b5-96a82e776655 fwd="114.185.97.24" dyno=web.1 connect=0ms service=1ms status=304 bytes=130 protocol=http
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
--
|
10
30
|
|
11
31
|
|
12
32
|
|
1
付け足しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,6 +6,10 @@
|
|
6
6
|
|
7
7
|
はじめに、記事の「SALTの設定」までやった段階でデプロイしました。ところが「An Internal Error Has Occurred」とエラーが出てどうやらDBのエラーらしいので、続きの「キャッシュの設定〜ログの設定」はひとまず無視して(記事が古いためかオブジェクト?が少し違うので放置)記事最後の「MySQLの設定」を、これもオブジェクトがあったりなかったりで違っていたのですが、ひとまず記事の通りに完コピしました。そして、再度デプロイしてみたのですが、結果は変わりませんでした。
|
8
8
|
|
9
|
+
追加してほしいことありましたらコメントお願いいたします。
|
10
|
+
|
11
|
+
|
12
|
+
|
9
13
|
```php
|
10
14
|
|
11
15
|
//長かったのでデフォルトのコメントは削除しました。
|