$task = $this->app->input->getCmd('task', '');
$view = $this->app->input->getCmd('view', '');
$layout = $this->app->input->getCmd('layout', '');
$Itemid = $this->app->input->getCmd('Itemid', '');
$menu = $this->app->getMenu()->getActive();
$pageclass = $menu->getParams()->get('pageclass_sfx', '');
$attributes = [
'id' => 'rstpl-pagewrap',
'class' => 'body'
$template->initHead();
/*
* used for loading assets
*/
// Detecting Active Variables
$template->getBodyClass();
$this->setMetaData('viewport', 'width=device-width, initial-scale=1, user-scalable=no');
$params = $template->getTemplateStyleParams($template->getTemplateId());
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_contents();
ob_end_clean();
}
return $contents;
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry();
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
*
* @since 1.7.0
*/
public function parse($params = [])
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
public function render($caching = false, $params = [])
{
$this->_caching = $caching;
if (empty($this->_template)) {
$this->parse($params);
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
$this->cspNonce = $params['csp_nonce'];
}
$this->debug = $params['debug'] ?? false;
$this->error = $this->_error;
$params['file'] = 'error.php';
return parent::render($cache, $params);
}
/**
* Render the backtrace
*
'template' => $template->template,
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'csp_nonce' => $app->get('csp_nonce'),
'templateInherits' => $template->parent,
'params' => $template->params,
]
);
}
}
// Reset the document object in the factory, this gives us a clean slate and lets everything render properly
Factory::$document = $renderer->getDocument();
Factory::getApplication()->loadDocument(Factory::$document);
$data = $renderer->render($error);
// If nothing was rendered, just use the message from the Exception
if (empty($data)) {
$data = $error->getMessage();
}
* @since 3.10.0
*/
public static function handleException(\Throwable $error)
{
static::logException($error);
static::render($error);
}
/**
* Render the error page based on an exception.
*
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('onBeforeRespond');
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
$task = $this->app->input->getCmd('task', '');
$view = $this->app->input->getCmd('view', '');
$layout = $this->app->input->getCmd('layout', '');
$Itemid = $this->app->input->getCmd('Itemid', '');
$menu = $this->app->getMenu()->getActive();
$pageclass = $menu->getParams()->get('pageclass_sfx', '');
$attributes = [
'id' => 'rstpl-pagewrap',
'class' => 'body'
* used for loading assets
*/
// Detecting Active Variables
$this->setMetaData('viewport', 'width=device-width, initial-scale=1, user-scalable=no');
$body_atrr = $template->getBodyClass();
if ($this->direction == 'rtl')
$body_atrr['class'] .= ' rtl';
?>
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_contents();
ob_end_clean();
}
return $contents;
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry();
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
*
* @since 1.7.0
*/
public function parse($params = [])
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
// Fall back to constants.
$this->docOptions['directory'] = \defined('JPATH_THEMES') ? JPATH_THEMES : (\defined('JPATH_BASE') ? JPATH_BASE : __DIR__) . '/themes';
}
// Parse the document.
$this->document->parse($this->docOptions);
// Trigger the onBeforeRender event.
PluginHelper::importPlugin('system');
$this->triggerEvent('onBeforeRender');
$this->set('themeInherits', $template->parent);
break;
}
parent::render();
}
/**
* Route the application.
*
$this->doExecute();
// If we have an application document object, render it.
if ($this->document instanceof \Joomla\CMS\Document\Document) {
// Render the application output.
$this->render();
}
// If gzip compression is enabled in configuration and the server is compliant, compress the output.
if ($this->get('gzip') && !ini_get('zlib.output_compression') && ini_get('output_handler') !== 'ob_gzhandler') {
$this->compress();
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
[2/2]
Error
|
---|
Error: Call to a member function getParams() on null at /home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates/rsradda/classes/template.php:430 at RSTemplate->getBodyClass() (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates/rsradda/error.php:27) at require('/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates/rsradda/error.php') (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Document/HtmlDocument.php:721) at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates/rsradda', 'error.php') (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Document/HtmlDocument.php:776) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'rsradda', 'directory' => '/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Document/HtmlDocument.php:612) at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'rsradda', 'directory' => '/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Document/HtmlDocument.php:630) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'rsradda', 'directory' => '/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'rsradda', 'directory' => '/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Error/Renderer/HtmlRenderer.php:78) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error)) (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Exception/ExceptionHandler.php:126) at Joomla\CMS\Exception\ExceptionHandler::render(object(Error)) (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Exception/ExceptionHandler.php:72) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error)) (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Application/CMSApplication.php:322) at Joomla\CMS\Application\CMSApplication->execute() (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/includes/app.php:61) at require_once('/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/includes/app.php') (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/index.php:32) |
[1/2]
Error
|
---|
Error: Call to a member function getParams() on null at /home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates/rsradda/classes/template.php:430 at RSTemplate->getBodyClass() (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates/rsradda/index.php:27) at require('/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates/rsradda/index.php') (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Document/HtmlDocument.php:721) at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates/rsradda', 'index.php') (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Document/HtmlDocument.php:776) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'rsradda', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates')) (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Document/HtmlDocument.php:612) at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'rsradda', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/templates')) (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Application/CMSApplication.php:1012) at Joomla\CMS\Application\CMSApplication->render() (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Application/SiteApplication.php:724) at Joomla\CMS\Application\SiteApplication->render() (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/libraries/src/Application/CMSApplication.php:298) at Joomla\CMS\Application\CMSApplication->execute() (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/includes/app.php:61) at require_once('/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/includes/app.php') (/home/clients/05be5d83fd38cf85d603c7c4d79fc627/web/index.php:32) |