xref: /webtrees/resources/views/errors/database-connection.phtml (revision 78606cf427772fbdc5222ff607ee23f43078f94b)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var string $error
9 */
10
11?>
12
13<div class="content">
14    <p>
15        <?= I18N::translate('Oops! The webserver is unable to connect to the database server. It could be busy, undergoing maintenance, or simply broken. You should <a href="index.php">try again</a> in a few minutes or contact the website administrator.') ?>
16    </p>
17
18    <blockquote>
19        <?= e($error) ?>
20    </blockquote>
21
22    <?= I18N::translate('If you are the website administrator, you should check that:') ?>
23
24    <ol>
25        <li>
26            <?= /* I18N: [you should check that:] ... */ I18N::translate('the database connection settings in the file “/data/config.ini.php” are still correct') ?>
27        </li>
28        <li>
29            <?= /* I18N: [you should check that:] ... */ I18N::translate('the folder “/data” and the file “/data/config.ini.php” have access permissions that allow the webserver to read them') ?>
30        </li>
31        <li>
32            <?= /* I18N: [you should check that:] ... */ I18N::translate('you can connect to the database using other applications, such as phpmyadmin') ?>
33        </li>
34    </ol>
35
36    <p class="good">
37        <?= I18N::translate('If you cannot resolve the problem yourself, you can ask for help on the forums at <a href="https://webtrees.net">webtrees.net</a>.') ?>
38    </p>
39</div>
40