ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
◀ ilDoc Overview
error.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Init
;
22
23
use Throwable;
24
use
ILIAS\HTTP\StatusCode
;
25
use
ILIAS\Data\Factory
as DataFactory;
26
use
ILIAS\Init\ErrorHandling\Http\ErrorPageResponder
;
27
use
ILIAS\Init\ErrorHandling\Http\PlainTextFallbackResponder
;
28
29
try
{
30
require_once
'../vendor/composer/vendor/autoload.php'
;
31
32
require_once __DIR__ .
'/../artifacts/bootstrap_default.php'
;
33
entry_point
(
'ILIAS Legacy Initialisation Adapter'
);
34
36
global
$DIC
;
37
38
\ilSession::clear
(
'referer'
);
39
\ilSession::clear
(
'message'
);
40
41
$DIC
->language()->loadLanguageModule(
'error'
);
42
43
$message
=
\ilSession::get
(
'failure'
) ??
$DIC
->language()->txt(
'http_500_internal_server_error'
);
44
45
$df
=
new
DataFactory();
46
$back_target
=
$df
->link(
47
$DIC
->language()->txt(
'error_back_to_repository'
),
48
$df
->uri(ILIAS_HTTP_PATH .
'/ilias.php?baseClass=ilRepositoryGUI'
)
49
);
50
51
new
ErrorPageResponder(
52
$DIC
->globalScreen(),
53
$DIC
->language(),
54
$DIC
->ui(),
55
$DIC
->http()
56
)->respond(
57
$message
,
58
StatusCode::HTTP_INTERNAL_SERVER_ERROR
,
59
$back_target
60
);
61
}
catch
(Throwable
$e
) {
62
new
PlainTextFallbackResponder()->respond(
$e
);
63
}
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:36
ILIAS\Init\ErrorHandling\Http\ErrorPageResponder
Responder that renders a full ILIAS error page (UI-Framework MessageBox) and sends it with the approp...
Definition:
ErrorPageResponder.php:46
ILIAS\Init\ErrorHandling\Http\PlainTextFallbackResponder
Responder that sends a minimal plain-text error response without relying on any ILIAS service (no DIC...
Definition:
PlainTextFallbackResponder.php:47
ILIAS\Init\$df
$df
Definition:
error.php:45
ILIAS\Init\$back_target
$back_target
Definition:
error.php:46
ILIAS\Init\$DIC
global $DIC
Definition:
error.php:36
ILIAS\Init\$message
$message
Definition:
error.php:43
ilSession\get
static get(string $a_var)
Definition:
class.ilSession.php:394
ilSession\clear
static clear(string $a_var)
Definition:
class.ilSession.php:404
ILIAS\HTTP\StatusCode
Definition:
StatusCode.php:30
ILIAS\HTTP\StatusCode\HTTP_INTERNAL_SERVER_ERROR
const HTTP_INTERNAL_SERVER_ERROR
Definition:
StatusCode.php:77
ILIAS\Init
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
entry_point
entry_point(string $name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
result1.php:21
components
ILIAS
Init
resources
error.php
Generated on Sun Apr 5 2026 23:03:11 for ILIAS by
1.9.4 (using
Doxyfile
)