exception.php 1.1 KB

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