xref: /webtrees/resources/views/errors/database-connection.phtml (revision 36de22acf6348b1059dac63e3cd19589574906ac)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5/**
6 * @var string $error
7 */
8
9?>
10
11<div class="content">
12    <p>
13        <?= 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.') ?>
14    </p>
15
16    <blockquote>
17        <?= e($error) ?>
18    </blockquote>
19
20    <?= I18N::translate('If you are the website administrator, you should check that:') ?>
21
22    <ol>
23        <li>
24            <?= /* I18N: [you should check that:] ... */ I18N::translate('the database connection settings in the file “/data/config.ini.php” are still correct') ?>
25        </li>
26        <li>
27            <?= /* 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') ?>
28        </li>
29        <li>
30            <?= /* I18N: [you should check that:] ... */ I18N::translate('you can connect to the database using other applications, such as phpmyadmin') ?>
31        </li>
32    </ol>
33
34    <p class="good">
35        <?= 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>.') ?>
36    </p>
37</div>
38