exception.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /** @var array $_ */
  3. /** @var \OCP\IL10N $l */
  4. style('core', ['styles', 'header']);
  5. require_once __DIR__ . '/print_exception.php';
  6. ?>
  7. <div class="guest-box wide">
  8. <h2><?php p($l->t('Internal Server Error')) ?></h2>
  9. <p><?php p($l->t('The server was unable to complete your request.')) ?></p>
  10. <p><?php p($l->t('If this happens again, please send the technical details below to the server administrator.')) ?></p>
  11. <p><?php p($l->t('More details can be found in the server log.')) ?></p>
  12. <h3><?php p($l->t('Technical details')) ?></h3>
  13. <ul>
  14. <li><?php p($l->t('Remote Address: %s', [$_['remoteAddr']])) ?></li>
  15. <li><?php p($l->t('Request ID: %s', [$_['requestID']])) ?></li>
  16. <?php if (isset($_['debugMode']) && $_['debugMode'] === true): ?>
  17. <li><?php p($l->t('Type: %s', [$_['errorClass']])) ?></li>
  18. <li><?php p($l->t('Code: %s', [$_['errorCode']])) ?></li>
  19. <li><?php p($l->t('Message: %s', [$_['errorMsg']])) ?></li>
  20. <li><?php p($l->t('File: %s', [$_['file']])) ?></li>
  21. <li><?php p($l->t('Line: %s', [$_['line']])) ?></li>
  22. <?php endif; ?>
  23. </ul>
  24. <?php if (isset($_['debugMode']) && $_['debugMode'] === true): ?>
  25. <br />
  26. <h3><?php p($l->t('Trace')) ?></h3>
  27. <?php print_exception($_['exception'], $l); ?>
  28. <?php endif; ?>
  29. </div>