if (!empty($preset->preset)) {
$preset = $preset->preset;
}
?>
<link href="<?php echo $theme_url . '/css/presets/' . $preset . '.css'; ?>" rel="stylesheet">
</head>
<body>
<div class="container">
<?php if($params->get('error_logo')) : ?>
<a href="<?php echo $this->baseurl; ?>/index.php">
// 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';
<label for="modlgn-passwd"><?php echo Text::_('JGLOBAL_PASSWORD'); ?></label>
<input id="modlgn-passwd" type="password" name="password" class="sppb-form-control" tabindex="0" size="18" placeholder="<?php echo Text::_('JGLOBAL_PASSWORD'); ?>" />
<?php endif; ?>
</div>
<?php if (count($twofactormethods) > 1) : ?>
<div id="form-login-secretkey" class="form-group">
<?php if (!$params->get('usetext')) : ?>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text" aria-label="<?php echo Text::_('JGLOBAL_SECRETKEY'); ?>"><span class="fa fa-star"></span></span>
// Logged users must load the logout sublayout
if (!$user->guest) {
$layout .= '_logout';
}
require ModuleHelper::getLayoutPath('mod_login', $layout);
unset($displayData);
} else {
extract($displayData);
}
include $path;
};
$loader($path, $this->getLayoutData());
}
}
}
include $path;
};
$loader($path, $this->getLayoutData());
}
}
$dispatcher = $app->bootModule($module->module, $app->getName())->getDispatcher($module, $app);
// Check if we have a dispatcher
if ($dispatcher) {
ob_start();
$dispatcher->dispatch();
$module->content = ob_get_clean();
}
// Add the flag that the module content has been rendered
$module->contentRendered = true;
// Get module parameters
$params = new Registry($module->params);
// Render the module content
static::renderRawModule($module, $params, $attribs);
// Return early if only the content is required
if (!empty($attribs['contentOnly'])) {
return $module->content;
}
$module->contentRendered = true;
return $module->content;
}
return ModuleHelper::renderModule($module, $attribs);
}
}
$user = Factory::getUser();
$frontediting = ($app->isClient('site') && $app->get('frontediting', 1) && !$user->guest);
$menusEditing = ($app->get('frontediting', 1) == 2) && $user->authorise('core.edit', 'com_menus');
foreach (ModuleHelper::getModules($position) as $mod) {
$moduleHtml = $renderer->render($mod, $params, $content);
if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend', 'com_modules.module.' . $mod->id)) {
$displayData = ['moduleHtml' => &$moduleHtml, 'module' => $mod, 'position' => $position, 'menusediting' => $menusEditing];
LayoutHelper::render('joomla.edit.frontediting_modules', $displayData);
}
$cbuffer[$hash] = $tmpdata;
$cache->store($cbuffer, 'cbuffer_' . $type);
} else {
$this->setBuffer($renderer->render($name, $attribs, null), $type, $name, $title);
}
return parent::$_buffer[$type][$name][$title];
}
$replace = [];
$with = [];
foreach ($this->_template_tags as $jdoc => $args) {
$replace[] = $jdoc;
$with[] = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
}
return str_replace($replace, $with, $this->_template);
}
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
$this->cspNonce = $params['csp_nonce'];
}
$data = $this->_renderTemplate();
parent::render($caching, $params);
return $data;
}
if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !Factory::getUser()->get('id')) {
$caching = true;
}
// Render the document.
$data = $this->document->render($caching, $this->docOptions);
// Set the application output data.
$this->setBody($data);
// Trigger the onAfterRender event.
$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: Object of class stdClass could not be converted to string at /www/htdocs/v085860/polhost/templates/shaper_gazette/error.php:70 at require() (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:721) at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/www/htdocs/v085860/polhost/templates/shaper_gazette', 'error.php') (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:776) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:612) at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:630) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/www/htdocs/v085860/polhost/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'shaper_gazette', 'directory' => '/www/htdocs/v085860/polhost/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/www/htdocs/v085860/polhost/libraries/src/Error/Renderer/HtmlRenderer.php:78) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(TypeError)) (/www/htdocs/v085860/polhost/libraries/src/Exception/ExceptionHandler.php:126) at Joomla\CMS\Exception\ExceptionHandler::render(object(TypeError)) (/www/htdocs/v085860/polhost/libraries/src/Exception/ExceptionHandler.php:72) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(TypeError)) (/www/htdocs/v085860/polhost/libraries/src/Application/CMSApplication.php:322) at Joomla\CMS\Application\CMSApplication->execute() (/www/htdocs/v085860/polhost/includes/app.php:61) at require_once('/www/htdocs/v085860/polhost/includes/app.php') (/www/htdocs/v085860/polhost/index.php:32) |
[1/2]
TypeError
|
---|
TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given at /www/htdocs/v085860/polhost/templates/shaper_gazette/html/mod_login/default.php:69 at require() (/www/htdocs/v085860/polhost/modules/mod_login/mod_login.php:34) at include('/www/htdocs/v085860/polhost/modules/mod_login/mod_login.php') (/www/htdocs/v085860/polhost/libraries/src/Dispatcher/ModuleDispatcher.php:52) at Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('/www/htdocs/v085860/polhost/modules/mod_login/mod_login.php', null) (/www/htdocs/v085860/polhost/libraries/src/Dispatcher/ModuleDispatcher.php:55) at Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() (/www/htdocs/v085860/polhost/libraries/src/Helper/ModuleHelper.php:281) at Joomla\CMS\Helper\ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'right', 'style' => 'sp_xhtml')) (/www/htdocs/v085860/polhost/libraries/src/Helper/ModuleHelper.php:161) at Joomla\CMS\Helper\ModuleHelper::renderModule(object(stdClass), array('name' => 'right', 'style' => 'sp_xhtml')) (/www/htdocs/v085860/polhost/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99) at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(object(stdClass), array('name' => 'right', 'style' => 'sp_xhtml'), null) (/www/htdocs/v085860/polhost/libraries/src/Document/Renderer/Html/ModulesRenderer.php:50) at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('right', array('name' => 'right', 'style' => 'sp_xhtml'), null) (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:565) at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'right', array('name' => 'right', 'style' => 'sp_xhtml')) (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:833) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/www/htdocs/v085860/polhost/libraries/src/Document/HtmlDocument.php:637) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'shaper_gazette', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/www/htdocs/v085860/polhost/templates')) (/www/htdocs/v085860/polhost/libraries/src/Application/CMSApplication.php:1025) at Joomla\CMS\Application\CMSApplication->render() (/www/htdocs/v085860/polhost/libraries/src/Application/SiteApplication.php:724) at Joomla\CMS\Application\SiteApplication->render() (/www/htdocs/v085860/polhost/libraries/src/Application/CMSApplication.php:298) at Joomla\CMS\Application\CMSApplication->execute() (/www/htdocs/v085860/polhost/includes/app.php:61) at require_once('/www/htdocs/v085860/polhost/includes/app.php') (/www/htdocs/v085860/polhost/index.php:32) |