|
1
|
|
|
<?php |
|
2
|
|
|
/** @var array $_ */ |
|
3
|
|
|
/** @var \OCP\IL10N $l */ |
|
4
|
|
|
|
|
5
|
|
|
style('core', ['styles', 'header']); |
|
6
|
|
|
|
|
7
|
|
|
function print_exception(Throwable $e, \OCP\IL10N $l): void { |
|
8
|
|
|
print_unescaped('<pre>'); |
|
9
|
|
|
p($e->getTraceAsString()); |
|
10
|
|
|
print_unescaped('</pre>'); |
|
11
|
|
|
|
|
12
|
|
|
if ($e->getPrevious() !== null) { |
|
13
|
|
|
print_unescaped('<br />'); |
|
14
|
|
|
print_unescaped('<h4>'); |
|
15
|
|
|
p($l->t('Previous')); |
|
16
|
|
|
print_unescaped('</h4>'); |
|
17
|
|
|
|
|
18
|
|
|
print_exception($e->getPrevious(), $l); |
|
19
|
|
|
} |
|
20
|
|
|
} |
|
21
|
|
|
|
|
22
|
|
|
?> |
|
23
|
|
|
<div class="error error-wide"> |
|
24
|
|
|
<h2><?php p($l->t('Internal Server Error')) ?></h2> |
|
25
|
|
|
<p><?php p($l->t('The server was unable to complete your request.')) ?></p> |
|
26
|
|
|
<p><?php p($l->t('If this happens again, please send the technical details below to the server administrator.')) ?></p> |
|
27
|
|
|
<p><?php p($l->t('More details can be found in the server log.')) ?></p> |
|
28
|
|
|
|
|
29
|
|
|
<h3><?php p($l->t('Technical details')) ?></h3> |
|
30
|
|
|
<ul> |
|
31
|
|
|
<li><?php p($l->t('Remote Address: %s', [$_['remoteAddr']])) ?></li> |
|
32
|
|
|
<li><?php p($l->t('Request ID: %s', [$_['requestID']])) ?></li> |
|
33
|
|
|
<?php if (isset($_['debugMode']) && $_['debugMode'] === true): ?> |
|
34
|
|
|
<li><?php p($l->t('Type: %s', [$_['errorClass']])) ?></li> |
|
35
|
|
|
<li><?php p($l->t('Code: %s', [$_['errorCode']])) ?></li> |
|
36
|
|
|
<li><?php p($l->t('Message: %s', [$_['errorMsg']])) ?></li> |
|
37
|
|
|
<li><?php p($l->t('File: %s', [$_['file']])) ?></li> |
|
38
|
|
|
<li><?php p($l->t('Line: %s', [$_['line']])) ?></li> |
|
39
|
|
|
<?php endif; ?> |
|
40
|
|
|
</ul> |
|
41
|
|
|
|
|
42
|
|
|
<?php if (isset($_['debugMode']) && $_['debugMode'] === true): ?> |
|
43
|
|
|
<br /> |
|
44
|
|
|
<h3><?php p($l->t('Trace')) ?></h3> |
|
45
|
|
|
<?php print_exception($_['exception'], $l); ?> |
|
46
|
|
|
<?php endif; ?> |
|
47
|
|
|
</div> |
|
48
|
|
|
|