|
36 | 36 | $error .= '<br />' . $attributes['message']; |
37 | 37 | } |
38 | 38 | } |
| 39 | + if ($name === 'debug_kit') { |
| 40 | + $error = 'Try adding your current <b>top level domain</b> to the |
| 41 | + <a href="https://book.cakephp.org/debugkit/4/en/index.html#configuration" target="_blank">DebugKit.safeTld</a> |
| 42 | + config and reload.'; |
| 43 | + if (!in_array('sqlite', \PDO::getAvailableDrivers())) { |
| 44 | + $error .= '<br />You need to install the PHP extension <code>pdo_sqlite</code> so DebugKit can work properly.'; |
| 45 | + } |
| 46 | + } |
39 | 47 | } |
40 | 48 |
|
41 | 49 | return compact('connected', 'error'); |
|
59 | 67 | </title> |
60 | 68 | <?= $this->Html->meta('icon') ?> |
61 | 69 |
|
62 | | - <link href="https://fonts.googleapis.com/css?family=Raleway:400,700" rel="stylesheet"> |
63 | | - |
64 | | - <?= $this->Html->css(['normalize.min', 'milligram.min', 'cake', 'home']) ?> |
| 70 | + <?= $this->Html->css(['normalize.min', 'milligram.min', 'fonts', 'cake', 'home']) ?> |
65 | 71 |
|
66 | 72 | <?= $this->fetch('meta') ?> |
67 | 73 | <?= $this->fetch('css') ?> |
|
179 | 185 | <?php if ($result['connected']) : ?> |
180 | 186 | <li class="bullet success">DebugKit can connect to the database.</li> |
181 | 187 | <?php else : ?> |
182 | | - <li class="bullet problem">DebugKit is <strong>not</strong> able to connect to the database.<br /><?= $result['error'] ?></li> |
| 188 | + <li class="bullet problem">There are configuration problems present which need to be fixed:<br /><?= $result['error'] ?></li> |
183 | 189 | <?php endif; ?> |
184 | 190 | <?php else : ?> |
185 | 191 | <li class="bullet problem">DebugKit is <strong>not</strong> loaded.</li> |
|
200 | 206 | <div class="column links"> |
201 | 207 | <h3>Help and Bug Reports</h3> |
202 | 208 | <a target="_blank" rel="noopener" href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a> |
203 | | - <a target="_blank" rel="noopener" href="http://cakesf.herokuapp.com/">Slack</a> |
| 209 | + <a target="_blank" rel="noopener" href="https://slack-invite.cakephp.org/">Slack</a> |
204 | 210 | <a target="_blank" rel="noopener" href="https://github.com/cakephp/cakephp/issues">CakePHP Issues</a> |
205 | | - <a target="_blank" rel="noopener" href="http://discourse.cakephp.org/">CakePHP Forum</a> |
| 211 | + <a target="_blank" rel="noopener" href="https://discourse.cakephp.org/">CakePHP Forum</a> |
206 | 212 | </div> |
207 | 213 | </div> |
208 | 214 | <hr> |
|
0 commit comments