[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage Template.system 6 * 7 * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Language\Text; 14 use Joomla\CMS\Router\Route; 15 16 /** @var \Joomla\CMS\Document\ErrorDocument $this */ 17 18 // Load template CSS file 19 $this->getWebAssetManager()->registerAndUseStyle('template.system.error', 'media/system/css/system-admin-error.min.css'); 20 21 // Set page title 22 $this->setTitle($this->error->getCode() . ' - ' . htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8')); 23 ?> 24 <!DOCTYPE html> 25 <html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"> 26 <head> 27 <jdoc:include type="metas" /> 28 <jdoc:include type="styles" /> 29 <jdoc:include type="scripts" /> 30 </head> 31 <body> 32 <table class="outline"> 33 <tr> 34 <td style="text-align: center;"> 35 <h1><?php echo $this->error->getCode() ?> - <?php echo Text::_('JERROR_AN_ERROR_HAS_OCCURRED'); ?></h1> 36 </td> 37 </tr> 38 <tr> 39 <td style="text-align: center;"> 40 <p> 41 <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?> 42 <?php if ($this->debug) : ?> 43 <br><?php echo htmlspecialchars($this->error->getFile(), ENT_QUOTES, 'UTF-8');?>:<?php echo $this->error->getLine(); ?> 44 <?php endif; ?> 45 </p> 46 <p><a href="<?php echo Route::_('index.php'); ?>"><?php echo Text::_('JGLOBAL_TPL_CPANEL_LINK_TEXT'); ?></a></p> 47 <?php if ($this->debug) : ?> 48 <div> 49 <?php echo $this->renderBacktrace(); ?> 50 <?php // Check if there are more Exceptions and render their data as well ?> 51 <?php if ($this->error->getPrevious()) : ?> 52 <?php $loop = true; ?> 53 <?php // Reference $this->_error here and in the loop as setError() assigns errors to this property and we need this for the backtrace to work correctly ?> 54 <?php // Make the first assignment to setError() outside the loop so the loop does not skip Exceptions ?> 55 <?php $this->setError($this->_error->getPrevious()); ?> 56 <?php while ($loop === true) : ?> 57 <p><strong><?php echo Text::_('JERROR_LAYOUT_PREVIOUS_ERROR'); ?></strong></p> 58 <p> 59 <?php echo htmlspecialchars($this->_error->getMessage(), ENT_QUOTES, 'UTF-8'); ?> 60 <br><?php echo htmlspecialchars($this->_error->getFile(), ENT_QUOTES, 'UTF-8');?>:<?php echo $this->_error->getLine(); ?> 61 </p> 62 <?php echo $this->renderBacktrace(); ?> 63 <?php $loop = $this->setError($this->_error->getPrevious()); ?> 64 <?php endwhile; ?> 65 <?php // Reset the main error object to the base error ?> 66 <?php $this->setError($this->error); ?> 67 <?php endif; ?> 68 </div> 69 <?php endif; ?> 70 </td> 71 </tr> 72 </table> 73 74 <jdoc:include type="modules" name="debug" style="none" /> 75 </body> 76 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |