Elgg  Version 1.11
Variables
exceptions.php File Reference

Go to the source code of this file.

Variables

 $emails
 This is an optional script used to override Elgg's default handling of uncaught exceptions. More...
 
 $url = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']
 
 $subject = "Exception: $url"
 
 $message = $exception->getMessage()
 
foreach($emails as $email$html
 

Variable Documentation

$emails
Initial value:
= array(
'admin@example.com',
'expert@example.com'
)

This is an optional script used to override Elgg's default handling of uncaught exceptions.

This is defined in the global $CONFIG->exception_include in settings.php

The script will have access to the following variables as part of the scope global $CONFIG $exception - the unhandled exception

Warning
- the database may not be available

Definition at line 19 of file exceptions.php.

foreach ($emails as $email) $html
Initial value:
= <<<HTML
<html>
<body>
Oops, a problem occurred. The authorities have been notified.
Sorry for the inconvenience.
</body>
</html>
HTML
body
Definition: admin.php:36
html
Definition: admin.php:36
a
Definition: admin.php:97

Definition at line 34 of file exceptions.php.

$message = $exception->getMessage()

Definition at line 26 of file exceptions.php.

$subject = "Exception: $url"
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 25 of file exceptions.php.

$url = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']