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

$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.

◆ $html

foreach ( $emails as $email) $html =

Definition at line 34 of file exceptions.php.

◆ $message

$message = $exception->getMessage()

Definition at line 26 of file exceptions.php.

◆ $subject

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

Definition at line 25 of file exceptions.php.

◆ $url

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