40 $this->
log(LogLevel::CRITICAL, $exception);
45 $request = Request::createFromGlobals();
47 'Cache-Control' =>
'no-store, must-revalidate',
48 'Expires' =>
'Fri, 05 Feb 1982 00:00:00 -0500',
63 if (!$app || !$app->internal_services) {
64 $msg =
"Exception loading Elgg core. Check log at time {$now}";
73 $services = $app->internal_services;
74 if ($services->responseFactory->getSentResponse() !== null) {
81 $exception_include = $services->config->exception_include;
83 if ($exception_include && is_file($exception_include)) {
87 include $exception_include;
89 $exception_output = ob_get_clean();
93 if (!empty($exception_output)) {
108 if ($services->request->isXmlHttpRequest()) {
109 $services->views->setViewtype(
'json');
112 $services->views->setViewtype(
'failsafe');
117 'object' => $exception,
124 }
catch (\Throwable $e) {
127 $this->
log(LogLevel::CRITICAL, $e);
129 $msg =
"Fatal error in exception handler. Check log for Exception at time {$now}";
Handler for uncaught exceptions.
__invoke(\Throwable $exception)
Intercepts, logs, and displays uncaught exceptions.
static $_instance
Reference to the loaded Application.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Updates the basic settings for the primary site object.
trait Loggable
Enables adding a logger.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_view_page(string $title, string|array $body, string $page_shell= 'default', array $vars=[])
Assembles and outputs a full page.
static isCli()
Is application running in CLI.
Thrown when there is a major problem with the installation.
log($level, $message, array $context=[])
Log a message.
const ELGG_HTTP_INTERNAL_SERVER_ERROR
const ELGG_HTTP_TEMPORARY_REDIRECT