see http://beta.woltlab.com/index.php/Thread/4155-Exception-Log-enth%C3%A4lt-keine-SQL-Informationen/
<dt>{lang}wcf.acp.exceptionLog.exception.userAgent{/lang}</dt>
<dd>{$exception[userAgent]}</dd>
</dl>
+ {if $exception[information]}
+ <dl>
+ <dt>{lang}wcf.acp.exceptionLog.exception.information{/lang}</dt>
+ <dd>{@$exception[information]}</dd>
+ </dl>
+ {/if}
<dl>
<dt>{lang}wcf.acp.exceptionLog.exception.stacktrace{/lang}</dt>
<dd style="font-family: monospace; word-wrap: wrap-all; word-break: break-all;">
use wcf\system\Regex;
use wcf\system\WCF;
use wcf\util\DirectoryUtil;
+use wcf\util\JSON;
use wcf\util\StringUtil;
/**
Request URI: (?P<requestURI>.*?)
Referrer: (?P<referrer>.*?)
User-Agent: (?P<userAgent>.*?)
+Information: (?P<information>.*?)
Stacktrace:
(?P<stacktrace>.*)', Regex::DOT_ALL);
$stackTraceFormatter = new Regex('^\s+(#\d+)', Regex::MULTILINE);
$this->exceptions[$key] = $exceptionRegex->getMatches();
$this->exceptions[$key]['stacktrace'] = explode("\n", $stackTraceFormatter->replace(StringUtil::encodeHTML($this->exceptions[$key]['stacktrace']), '<strong>\\1</strong>'));
+ $this->exceptions[$key]['information'] = JSON::decode($this->exceptions[$key]['information']);
}
}
<?php
namespace wcf\system\exception;
use wcf\system\WCF;
+use wcf\util\JSON;
use wcf\util\StringUtil;
/**
'Request URI: '.(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '')."\n".
'Referrer: '.(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '')."\n".
'User-Agent: '.(isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '')."\n".
+ 'Information: '.JSON::encode($this->information)."\n".
"Stacktrace: \n ".implode("\n ", explode("\n", $this->__getTraceAsString()))."\n";
// calculate Exception-ID
<item name="wcf.acp.exceptionLog.exception.file"><![CDATA[Datei (Zeile)]]></item>
<item name="wcf.acp.exceptionLog.exception.requestURI"><![CDATA[Aufgerufene URL]]></item>
<item name="wcf.acp.exceptionLog.exception.referrer"><![CDATA[Referrer]]></item>
+ <item name="wcf.acp.exceptionLog.exception.information"><![CDATA[Zusatzinformationen]]></item>
<item name="wcf.acp.exceptionLog.exception.stacktrace"><![CDATA[Stacktrace]]></item>
<item name="wcf.acp.exceptionLog.exception.copy"><![CDATA[Fehlermeldung kopieren]]></item>
<item name="wcf.acp.exceptionLog.exceptionNotFound"><![CDATA[Es wurde kein Fehler mit der ID „{$exceptionID}“ gefunden.]]></item>
<item name="wcf.acp.exceptionLog.exception.file"><![CDATA[File (Line)]]></item>
<item name="wcf.acp.exceptionLog.exception.requestURI"><![CDATA[Requested URL]]></item>
<item name="wcf.acp.exceptionLog.exception.referrer"><![CDATA[Referrer]]></item>
+ <item name="wcf.acp.exceptionLog.exception.information"><![CDATA[Additional information]]></item>
<item name="wcf.acp.exceptionLog.exception.stacktrace"><![CDATA[Stacktrace]]></item>
<item name="wcf.acp.exceptionLog.exception.copy"><![CDATA[Copy error message]]></item>
<item name="wcf.acp.exceptionLog.exceptionNotFound"><![CDATA[No error with the ID “{$exceptionID}” was found.]]></item>