CMS  Version 3.9
error_details.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("error_log", "user", "activity_tracker");
3 Fakoli::usingFeature("auto_form");
4 
5 $error_log_id = checkNumeric($_GET["error_log_id"]);
6 
8 
9 $tracking = Settings::getValue("activity_tracker", "track_activity");
10 
11 if ($tracking)
12 {
14  $sid = "";
15  foreach($sessions as $s)
16  {
17  $sid .= "<a href='session_details?session_id={$s->session_id}'>{$error->session}</a><br/>";
18  }
19 }
20 else
21 {
22  $sid = $error->session;
23 }
24 ?>
25 <b>Error encountered by <?echo $error->getUserFullName()?> on <?echo $error->timestamp?>.</b>
26 <p><b>Session ID: <?echo $sid?></b></p>
27 <p><b>URI:</b> <?echo $error->uri?>, <b>Referer:</b> <?echo $error->referer?></p>
28 <p><?echo $error->message?></p>
29 <p><em><?echo $error->file?></em> Line <?echo $error->line?></p>
30 <h4>Stack Trace</h4>
31 <p><?echo formatAsHTML($error->details)?></p>
32 <br/>
33 <br/>
34 <a class='button' href='error_log'>&laquo; Back to Error Log</a>
if($user_id) $sessions
static usingFeature()
Uses the specified framework feature(s).
Definition: core.inc:388
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
static getValue($component, $name)
Retrieve the value of the specified Setting.
Definition: settings.inc:104
static getSessions($identifier)
$error_log_id
< b > Referer
$error
$tracking
$forumRequest to