Changeset 6006
- Timestamp:
- 02/05/12 18:56:03 (4 months ago)
- Location:
- trunk/core
- Files:
-
- 2 edited
-
errorhandler.core.php (modified) (3 diffs)
-
exception.core.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/errorhandler.core.php
r5998 r6006 310 310 $errormessage .= '</table>'; 311 311 312 # HR Split313 $errormessage .= '<tr><td colspan="2"> </td></tr>';314 315 312 # Error Context 316 $errormessage .= '<tr><td colspan="2"><h3>Context</h3></td></tr>'; 317 $errormessage .= '<tr><td colspan="2">' . self::getErrorContext($errorfile, $errorline, 8) . '</td></tr>'; 318 319 # HR Split 320 $errormessage .= '<tr><td colspan="2"> </td></tr>'; 313 $errormessage .= '<tr><td colspan="2"><h3>Context</h3>'; 314 $errormessage .= self::getErrorContext($errorfile, $errorline, 8) . '</td></tr>'; 321 315 322 316 # Add Debug Backtracing 323 317 $errormessage .= '<tr><td>' . self::getDebugBacktrace($trimed_errorstring) . '</td></tr>'; 324 318 325 # HR Split326 # $errormessage .= '<tr><td colspan="2"> </td></tr>';327 328 319 # 329 320 # $errormessage .= '<tr><td>' . self::getBugtrackerSearch() . '</td></tr>'; 330 331 # HR Split332 $errormessage .= '<tr><td colspan="2"> </td></tr>';333 321 334 322 # Environmental Informations at Errortime ( $errorcontext is not displayed ) … … 345 333 $errormessage .= '</table>'; 346 334 347 # HR Split348 $errormessage .= '<tr><td colspan="2"> </td></tr>';349 350 335 # Backlink to Bugtracker with Errormessage -> http://trac.clansuite.com/newticket 351 336 $errormessage .= self::getBugtrackerMessage($errorstring, $errorfile, $errorline, $errorcontext); … … 400 385 # prepare a new backtrace_string 401 386 $backtrace_string = ''; 402 $backtrace_string .= '<tr><td><h3>Backtrace</h3></td></tr>'; 403 $backtrace_string .= '<tr><td width="95%">'; 387 $backtrace_string .= '<tr><td width="95%"><h3>Backtrace</h3>'; 404 388 $backtrace_string .= '<table class="cs-backtrace-table" width="95%">'; 405 $backtrace_string .= '<tr><th><strong>Callstack</strong></td><th colspan="2">(Recent function calls last)</td></tr>'; 406 407 $backtrace_string .= '<tr><th width="2%"> #</th><th>Function</th><th width="40%">Location</th></tr>';389 390 # table row 1 - header 391 $backtrace_string .= '<tr><th width="2%">Callstack</th><th>Function (recent function calls last)</th><th width="40%">Location</th></tr>'; 408 392 409 393 $backtraces_count = count($backtrace)-1; -
trunk/core/exception.core.php
r6001 r6006 265 265 public function yellowScreenOfDeath() 266 266 { 267 /** 268 * @todo add backlink to the exception codes list 269 */ 270 if($this->code > 0) 271 { 272 $code = '(# ' . $this->code . ')'; 273 } 274 else 275 { 276 $code = ''; 277 } 278 267 279 # Header 268 280 $errormessage = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; 269 281 $errormessage .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">'; 270 282 $errormessage .= '<head>'; 271 $errormessage .= '<title>Clansuite Exception : [ ' . $this->message . ' | Exceptioncode: ' . $this->code . ' ]</title>';283 $errormessage .= '<title>Clansuite Exception ' . $code . ' - ' . $this->message . '</title>'; 272 284 $errormessage .= '<link rel="stylesheet" href="' . WWW_ROOT_THEMES_CORE . 'css/error.css" type="text/css" />'; 273 285 $errormessage .= '</head>'; … … 285 297 286 298 # Fieldset Legend 287 $errormessage .= '<legend>Clansuite Exception : [ ' . $this->message . ' ]</legend>';299 $errormessage .= '<legend>Clansuite Exception</legend>'; 288 300 289 301 # Error Messages from Object (table) … … 291 303 $errormessage .= '<table>'; 292 304 293 # @todo add link 294 if($this->code > 0) 295 { 296 $code = '(# ' . $this->code . ')'; 297 } 298 else 299 { 300 $code = ''; 301 } 302 303 $errormessage .= '<tr><td>'; 304 305 # Panel 1 - Exception Message and File 305 /** 306 * Panel 1 307 * 308 * Exception Message and File 309 */ 310 $errormessage .= '<tr><td>'; 306 311 $errormessage .= '<div id="panel"'; 307 312 $errormessage .= 'style="background: none repeat scroll 0 0 #FDF599; border: 1px solid #E03937; border-radius: 3px; padding: 0 10px 10px;">'; … … 311 316 $errormessage .= ' <strong>Line: </strong>'.$this->line; 312 317 $errormessage .= '</div>'; 313 314 318 $errormessage .= '</td></tr>'; 315 319 316 # Split 317 $errormessage .= '<tr><td colspan="2"> </td></tr>'; 318 319 # Debug Backtrace 320 /** 321 * Panel 2 322 * 323 * Debug Backtrace 324 */ 320 325 if ( defined('DEBUG') and DEBUG == 1 ) 321 326 { 322 327 # lets get the backtrace as html table 323 328 $errormessage .= Clansuite_Errorhandler::getDebugBacktrace($this->trace); 324 325 # Split 326 $errormessage .= '<tr><td colspan="2"> </td></tr>'; 327 } 328 329 # Environmental Informations at Errortime 329 } 330 331 /** 332 * Panel 3 333 * 334 * Server Environment Informations 335 */ 330 336 if ( defined('DEBUG') and DEBUG == 1 ) 331 337 { 332 # HEADING <Server Environment>333 338 $errormessage .= '<tr><td><table width="95%">'; 334 339 $errormessage .= '<tr><td colspan="2"><h3>Server Environment</h3></td></tr>'; … … 342 347 $errormessage .= ' (' . CLANSUITE_VERSION_NAME . ') [Revision #' . CLANSUITE_REVISION . ']</td></tr>'; 343 348 $errormessage .= '</table></td></tr>'; 344 345 # Split 346 $errormessage .= '<tr><td colspan="2"> </td></tr>'; 347 } 348 349 # HEADING <Additional Information> 349 } 350 351 /** 352 * Panel 4 353 * 354 * Additional Information 355 */ 350 356 if(empty(self::$exception_template) === false) 351 357 { 352 $errormessage .= '<tr><td colspan="2"><h3>Additional Information & Solution Suggestion</h3> </td></tr>';353 $errormessage .= '<tr><td colspan="2">'.self::$exception_template.'</td></tr>';354 355 # Split 356 $errormessage .= '<tr><td colspan="2"> </td></tr>';357 }358 359 # HEADING <Rapid Development>360 358 $errormessage .= '<tr><td colspan="2"><h3>Additional Information & Solution Suggestion</h3>'; 359 $errormessage .= self::$exception_template.'</td></tr>'; 360 } 361 362 /** 363 * Panel 5 364 * 365 * Rapid Development 366 */ 361 367 $placeholders = array(); 362 368 # assign placeholders for replacements in the html … … 382 388 if(defined('DEVELOPMENT') and DEVELOPMENT == 1 and defined('RAPIDDEVTPL') and RAPIDDEVTPL == 1) 383 389 { 384 $errormessage .= '<tr><td colspan="2"><h3>Rapid Development</h3></td></tr>'; 385 $errormessage .= '<tr><td colspan="2">'.self::getExceptionDevelopmentTemplate($placeholders).'</td></tr>'; 386 387 # Split 388 $errormessage .= '<tr><td colspan="2"> </td></tr>'; 389 } 390 391 # Backlink to Bugtracker with Exceptionmessage -> http://trac.clansuite.com/newticket 390 $errormessage .= '<tr><td colspan="2"><h3>Rapid Development</h3>'; 391 $errormessage .= self::getExceptionDevelopmentTemplate($placeholders).'</td></tr>'; 392 } 393 394 /** 395 * Panel 6 396 * 397 * Backlink to Bugtracker with Exceptionmessage 398 * @link http://trac.clansuite.com/newticket 399 */ 392 400 $errormessage .= Clansuite_Errorhandler::getBugtrackerMessage($this->message, $this->file, $this->line, $this->trace); 393 401 … … 395 403 $errormessage .= '</table>'; 396 404 397 # Footer with Support-Backlinks 405 /** 406 * Panel 7 407 * 408 * Footer with Support-Backlinks 409 */ 398 410 $errormessage .= Clansuite_Errorhandler::getSupportBacklinks($this); 399 411
Note: See TracChangeset
for help on using the changeset viewer.
