exception.php 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /** @var array $_ */
  3. /** @var \OCP\IL10N $l */
  4. style('core', ['styles', 'header']);
  5. ?>
  6. <span class="error error-wide">
  7. <h2><strong><?php p($l->t('Internal Server Error')) ?></strong></h2>
  8. <p><?php p($l->t('The server encountered an internal error and was unable to complete your request.')) ?></p>
  9. <p><?php p($l->t('Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.')) ?></p>
  10. <p><?php p($l->t('More details can be found in the server log.')) ?></p>
  11. <br>
  12. <h2><strong><?php p($l->t('Technical details')) ?></strong></h2>
  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($_['debugMode']): ?>
  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($_['debugMode']): ?>
  25. <br />
  26. <h2><strong><?php p($l->t('Trace')) ?></strong></h2>
  27. <pre><?php p($_['trace']) ?></pre>
  28. <?php endif; ?>
  29. </span>