質問編集履歴
3
errorlog markdown文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,6 +66,8 @@
|
|
66
66
|
|
67
67
|
---
|
68
68
|
|
69
|
+
```LOG
|
70
|
+
|
69
71
|
2016-05-28 02:52:50 Error: [Cake\Database\Exception] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'myapp.sites' doesn't exist
|
70
72
|
|
71
73
|
Request URL: /Sitemasters/
|
@@ -109,3 +111,5 @@
|
|
109
111
|
#16 /var/www/html/myapp/webroot/index.php(36): Cake\Routing\Dispatcher->dispatch(Object(Cake\Network\Request), Object(Cake\Network\Response))
|
110
112
|
|
111
113
|
#17 {main}
|
114
|
+
|
115
|
+
```
|
2
errorlogの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -55,3 +55,57 @@
|
|
55
55
|
PHP 7.0.6
|
56
56
|
|
57
57
|
CakePHP '3.2.10'
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
---
|
64
|
+
|
65
|
+
errror.log をみましたが、SitemastersTableもModelに加えてsitesテーブルが必要?ということでしょうか・
|
66
|
+
|
67
|
+
---
|
68
|
+
|
69
|
+
2016-05-28 02:52:50 Error: [Cake\Database\Exception] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'myapp.sites' doesn't exist
|
70
|
+
|
71
|
+
Request URL: /Sitemasters/
|
72
|
+
|
73
|
+
Client IP: 192.168.200.68
|
74
|
+
|
75
|
+
Stack Trace:
|
76
|
+
|
77
|
+
#0 /var/www/html/myapp/vendor/cakephp/cakephp/src/Database/Schema/Collection.php(96): Cake\Database\Schema\Collection->_reflect('Column', 'sites', Array, Object(Cake\Database\Schema\Table))
|
78
|
+
|
79
|
+
#1 /var/www/html/myapp/vendor/cakephp/cakephp/src/Database/Schema/CachedCollection.php(64): Cake\Database\Schema\Collection->describe('sites', Array)
|
80
|
+
|
81
|
+
#2 /var/www/html/myapp/vendor/cakephp/cakephp/src/ORM/Table.php(430): Cake\Database\Schema\CachedCollection->describe('sites')
|
82
|
+
|
83
|
+
#3 /var/www/html/myapp/vendor/cakephp/cakephp/src/ORM/Table.php(506): Cake\ORM\Table->schema()
|
84
|
+
|
85
|
+
#4 /var/www/html/myapp/vendor/cakephp/cakephp/src/ORM/Query.php(371): Cake\ORM\Table->primaryKey()
|
86
|
+
|
87
|
+
#5 /var/www/html/myapp/vendor/cakephp/cakephp/src/ORM/Query.php(349): Cake\ORM\Query->_addAssociationsToTypeMap(Object(App\Model\Table\SitemastersTable), Object(Cake\Database\TypeMap), Array)
|
88
|
+
|
89
|
+
#6 /var/www/html/myapp/vendor/cakephp/cakephp/src/ORM/Query.php(673): Cake\ORM\Query->contain(Array)
|
90
|
+
|
91
|
+
#7 /var/www/html/myapp/vendor/cakephp/cakephp/src/ORM/Table.php(1806): Cake\ORM\Query->applyOptions(Array)
|
92
|
+
|
93
|
+
#8 /var/www/html/myapp/vendor/cakephp/cakephp/src/ORM/Table.php(948): Cake\ORM\Table->callFinder('all', Object(Cake\ORM\Query), Array)
|
94
|
+
|
95
|
+
#9 /var/www/html/myapp/vendor/cakephp/cakephp/src/Controller/Component/PaginatorComponent.php(166): Cake\ORM\Table->find('all', Array)
|
96
|
+
|
97
|
+
#10 /var/www/html/myapp/vendor/cakephp/cakephp/src/Controller/Controller.php(688): Cake\Controller\Component\PaginatorComponent->paginate(Object(App\Model\Table\SitemastersTable), Array)
|
98
|
+
|
99
|
+
#11 /var/www/html/myapp/src/Controller/SitemastersController.php(24): Cake\Controller\Controller->paginate(Object(App\Model\Table\SitemastersTable))
|
100
|
+
|
101
|
+
#12 [internal function]: App\Controller\SitemastersController->index()
|
102
|
+
|
103
|
+
#13 /var/www/html/myapp/vendor/cakephp/cakephp/src/Controller/Controller.php(429): call_user_func_array(Array, Array)
|
104
|
+
|
105
|
+
#14 /var/www/html/myapp/vendor/cakephp/cakephp/src/Routing/Dispatcher.php(114): Cake\Controller\Controller->invokeAction()
|
106
|
+
|
107
|
+
#15 /var/www/html/myapp/vendor/cakephp/cakephp/src/Routing/Dispatcher.php(87): Cake\Routing\Dispatcher->_invoke(Object(App\Controller\SitemastersController))
|
108
|
+
|
109
|
+
#16 /var/www/html/myapp/webroot/index.php(36): Cake\Routing\Dispatcher->dispatch(Object(Cake\Network\Request), Object(Cake\Network\Response))
|
110
|
+
|
111
|
+
#17 {main}
|
1
誤字修正、試したこと追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
###
|
27
|
+
###scaffold作成時のコマンド
|
28
28
|
|
29
29
|
```BASH
|
30
30
|
|
@@ -42,7 +42,9 @@
|
|
42
42
|
|
43
43
|
###試したこと
|
44
44
|
|
45
|
-
|
45
|
+
dbname.Sitemastersが存在することの確認⇒存在した
|
46
|
+
|
47
|
+
bake allによってsrc/Model/Table/SitemastersTable.phpが作成されていることの確認⇒存在した
|
46
48
|
|
47
49
|
|
48
50
|
|