class JErrorPage { /** * Render the error page based on an exception or error. * * @param \Throwable $error The exception or error for which to render the error page. * * @return void * * @since 3.0 */ public static function render(\Throwable $error) { try { $app = JFactory::getApplication(); $document = JDocument::getInstance('error'); if (!$document) { jexit($error->getMessage()); } $template = $app->getTemplate(); $document->setError($error); if (ob_get_contents()) { ob_end_clean(); } $document->setTitle(JText::_('Error') . ': ' . $error->getCode()); $data = $document->render( false, array( 'template' => $template, 'directory' => JPATH_THEMES, 'debug' => JDEBUG ) ); $app->allowCache(false); if (empty($data)) { $data = $error->getMessage(); } $app->setBody($data); echo $app->toString(); } catch (\Throwable $e) { if (!headers_sent()) { header('HTTP/1.1 500 Internal Server Error'); } jexit('Error displaying the error page: ' . $e->getMessage() . ': ' . $error->getMessage()); } } }
Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/swhengte/public_html/libraries/joomla/database/driver.php on line 1573

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/swhengte/public_html/libraries/joomla/database/driver.php on line 1573

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/swhengte/public_html/libraries/joomla/database/driver.php on line 1649

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/swhengte/public_html/libraries/vendor/joomla/registry/src/Format/Ini.php on line 170

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/swhengte/public_html/libraries/vendor/joomla/registry/src/Format/Ini.php on line 187

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/swhengte/public_html/libraries/joomla/filesystem/path.php on line 143

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/swhengte/public_html/libraries/joomla/filesystem/path.php on line 146

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/swhengte/public_html/libraries/joomla/filesystem/path.php on line 149

Fatal error: Uncaught Error: Call to undefined function json_decode() in /home/swhengte/public_html/libraries/vendor/joomla/registry/src/Format/Json.php:57 Stack trace: #0 /home/swhengte/public_html/libraries/vendor/joomla/registry/src/Registry.php(359): Joomla\Registry\Format\Json->stringToObject('{"allowUserRegi...', Array) #1 /home/swhengte/public_html/libraries/cms/component/helper.php(62): Joomla\Registry\Registry->loadString('{"allowUserRegi...') #2 /home/swhengte/public_html/libraries/cms/component/helper.php(120): JComponentHelper::getComponent('com_users', false) #3 /home/swhengte/public_html/libraries/cms/application/site.php(584): JComponentHelper::getParams('com_users') #4 /home/swhengte/public_html/libraries/cms/application/site.php(209): JApplicationSite->initialiseApp() #5 /home/swhengte/public_html/libraries/cms/application/cms.php(252): JApplicationSite->doExecute() #6 /home/swhengte/public_html/index.php(49): JApplicationCms->execute() #7 {main} thrown in /home/swhengte/public_html/libraries/vendor/joomla/registry/src/Format/Json.php on line 57