$this->connection = $connection;
$this->query = $query;
$query = $this->prepareParameterKeyMapping($query);
$this->statement = $connection->prepare($query);
if (!$this->statement)
{
throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno);
}
$this->connection = $connection;
$this->query = $query;
$query = $this->prepareParameterKeyMapping($query);
$this->statement = $connection->prepare($query);
if (!$this->statement)
{
throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno);
}
* @since 2.0.0
* @throws PrepareStatementFailureException
*/
protected function prepareStatement(string $query): StatementInterface
{
return new MysqliStatement($this->connection, $query);
}
/**
* Unlocks tables in the database.
*
$query->setLimit($limit, $offset);
$sql = $this->replacePrefix((string) $query);
$this->statement = $this->prepareStatement($sql);
$this->sql = $query;
$this->limit = (int) max(0, $limit);
$this->offset = (int) max(0, $offset);
$query->from($db->quoteName('#__template_styles'));
$query->where($db->quoteName('client_id') . ' = 0');
$query->where($db->quoteName('id') . ' = ' . $db->quote($id));
$db->setQuery($query);
return $db->loadObject();
}
/**
{
$template = $cache->loadData();
}
else
{
$template = self::getTemplateStyle($templateId);
}
}
if (isset($template->template) && !empty($template->template))
{
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Language\Text;
$app = Factory::getApplication();
$doc = Factory::getDocument();
$template = Helper::loadTemplateData();
$params = $template->params;
$fontCSS = '';
function addGoogleFont($fonts)
{
// 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';
$this->connection = $connection;
$this->query = $query;
$query = $this->prepareParameterKeyMapping($query);
$this->statement = $connection->prepare($query);
if (!$this->statement)
{
throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno);
}
$this->connection = $connection;
$this->query = $query;
$query = $this->prepareParameterKeyMapping($query);
$this->statement = $connection->prepare($query);
if (!$this->statement)
{
throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno);
}
* @since 2.0.0
* @throws PrepareStatementFailureException
*/
protected function prepareStatement(string $query): StatementInterface
{
return new MysqliStatement($this->connection, $query);
}
/**
* Unlocks tables in the database.
*
$query->setLimit($limit, $offset);
$sql = $this->replacePrefix((string) $query);
$this->statement = $this->prepareStatement($sql);
$this->sql = $query;
$this->limit = (int) max(0, $limit);
$this->offset = (int) max(0, $offset);
$query->from($db->quoteName('#__template_styles'));
$query->where($db->quoteName('client_id') . ' = 0');
$query->where($db->quoteName('id') . ' = ' . $db->quote($id));
$db->setQuery($query);
return $db->loadObject();
}
/**
{
$template = $cache->loadData();
}
else
{
$template = self::getTemplateStyle($templateId);
}
}
if (isset($template->template) && !empty($template->template))
{
* @return string The parsed path.
* @since 2.0.2
*/
private static function parsePath(string $path): string
{
$template = Helper::loadTemplateData();
$path = \preg_replace("@\{\{template\}\}@", $template->template, $path);
return Path::clean($path);
}
$backtrace = \debug_backtrace();
$callPath = $backtrace[0]['file'] ?? '';
$staticHtmlPath = self::parsePath(self::$htmlPath);
$staticOverridePath = self::parsePath(self::$overridePath);
$templateOverrideUri = self::parsePath(self::$tmplOverridePath);
$webAssetUri = self::parsePath('/templates/{{template}}/joomla.asset.json');
$relativePath = '';
$overridePath = '';
/**
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/
defined ('JPATH_BASE') or die();
require HelixUltimate\Framework\Platform\HTMLOverride::loadTemplate();
if (!$list) {
return;
}
require ModuleHelper::getLayoutPath('mod_menu', $params->get('layout', 'default'));
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;
}
<?php echo $menu->renderLogin(); ?>
<?php endif ?>
</div>
<?php if ($hasModMenu === false): ?>
<?php echo ModuleHelper::renderModule($menuModule, ['style' => 'sp_xhtml']); ?>
<?php else: ?>
<jdoc:include type="modules" name="offcanvas" style="sp_xhtml" />
<?php endif ?>
if (empty($path)) {
return $layoutOutput;
}
ob_start();
include $path;
$layoutOutput .= ob_get_contents();
ob_end_clean();
return $layoutOutput;
}
if (\file_exists($offCanvasDirectory . '/' . $offCanvasStyle . '/canvas.php'))
{
$getLayout = new FileLayout($offCanvasStyle . '.canvas', $offCanvasDirectory);
return $getLayout->render($options);
}
return '';
}
<div class="offcanvas-overlay"></div>
<!-- Rendering the offcanvas style -->
<!-- If canvas style selected then render the style -->
<!-- otherwise (for old templates) attach the offcanvas module position -->
<?php if (!empty($this->params->get('offcanvas_style', '1-LeftAlign'))): ?>
<?php echo $theme->getOffcanvasStyle(); ?>
<?php else : ?>
<div class="offcanvas-menu">
<a href="#" class="close-offcanvas" aria-label="<?php echo Text::_('HELIX_ULTIMATE_CLOSE_OFFCANVAS_ARIA_LABEL'); ?>"><span class="fas fa-times" aria-hidden="true"></span></a>
<div class="offcanvas-inner">
<?php if ($this->countModules('offcanvas')) : ?>
// 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]
mysqli_sql_exception
|
---|
mysqli_sql_exception: MySQL server has gone away at /hp/aa/ac/uk/www/feuerwehr/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137 at mysqli->prepare('SELECT *FROM `vr2k_template_styles`WHERE `client_id` = 0 AND `id` = \'12\'') (/hp/aa/ac/uk/www/feuerwehr/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137) at Joomla\Database\Mysqli\MysqliStatement->__construct(object(mysqli), 'SELECT *FROM `vr2k_template_styles`WHERE `client_id` = 0 AND `id` = \'12\'') (/hp/aa/ac/uk/www/feuerwehr/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1089) at Joomla\Database\Mysqli\MysqliDriver->prepareStatement('SELECT *FROM `vr2k_template_styles`WHERE `client_id` = 0 AND `id` = \'12\'') (/hp/aa/ac/uk/www/feuerwehr/libraries/vendor/joomla/database/src/DatabaseDriver.php:1900) at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery)) (/hp/aa/ac/uk/www/feuerwehr/plugins/system/helixultimate/src/Platform/Helper.php:52) at HelixUltimate\Framework\Platform\Helper::getTemplateStyle(12) (/hp/aa/ac/uk/www/feuerwehr/plugins/system/helixultimate/src/Platform/Helper.php:336) at HelixUltimate\Framework\Platform\Helper::loadTemplateData() (/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate/error.php:19) at require('/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate/error.php') (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Document/HtmlDocument.php:721) at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate', 'error.php') (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Document/HtmlDocument.php:776) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'shaper_helixultimate', 'directory' => '/hp/aa/ac/uk/www/feuerwehr/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Document/HtmlDocument.php:612) at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'shaper_helixultimate', 'directory' => '/hp/aa/ac/uk/www/feuerwehr/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Document/HtmlDocument.php:630) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'shaper_helixultimate', 'directory' => '/hp/aa/ac/uk/www/feuerwehr/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'shaper_helixultimate', 'directory' => '/hp/aa/ac/uk/www/feuerwehr/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Error/Renderer/HtmlRenderer.php:78) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(mysqli_sql_exception)) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Exception/ExceptionHandler.php:126) at Joomla\CMS\Exception\ExceptionHandler::render(object(mysqli_sql_exception)) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Exception/ExceptionHandler.php:72) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(mysqli_sql_exception)) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Application/CMSApplication.php:322) at Joomla\CMS\Application\CMSApplication->execute() (/hp/aa/ac/uk/www/feuerwehr/includes/app.php:61) at require_once('/hp/aa/ac/uk/www/feuerwehr/includes/app.php') (/hp/aa/ac/uk/www/feuerwehr/index.php:32) |
[1/2]
mysqli_sql_exception
|
---|
mysqli_sql_exception: MySQL server has gone away at /hp/aa/ac/uk/www/feuerwehr/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137 at mysqli->prepare('SELECT *FROM `vr2k_template_styles`WHERE `client_id` = 0 AND `id` = \'12\'') (/hp/aa/ac/uk/www/feuerwehr/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137) at Joomla\Database\Mysqli\MysqliStatement->__construct(object(mysqli), 'SELECT *FROM `vr2k_template_styles`WHERE `client_id` = 0 AND `id` = \'12\'') (/hp/aa/ac/uk/www/feuerwehr/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1089) at Joomla\Database\Mysqli\MysqliDriver->prepareStatement('SELECT *FROM `vr2k_template_styles`WHERE `client_id` = 0 AND `id` = \'12\'') (/hp/aa/ac/uk/www/feuerwehr/libraries/vendor/joomla/database/src/DatabaseDriver.php:1900) at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery)) (/hp/aa/ac/uk/www/feuerwehr/plugins/system/helixultimate/src/Platform/Helper.php:52) at HelixUltimate\Framework\Platform\Helper::getTemplateStyle(12) (/hp/aa/ac/uk/www/feuerwehr/plugins/system/helixultimate/src/Platform/Helper.php:336) at HelixUltimate\Framework\Platform\Helper::loadTemplateData() (/hp/aa/ac/uk/www/feuerwehr/plugins/system/helixultimate/src/Platform/HTMLOverride.php:56) at HelixUltimate\Framework\Platform\HTMLOverride::parsePath('/templates/{{template}}/joomla.asset.json') (/hp/aa/ac/uk/www/feuerwehr/plugins/system/helixultimate/src/Platform/HTMLOverride.php:156) at HelixUltimate\Framework\Platform\HTMLOverride::loadTemplate() (/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate/html/mod_menu/default.php:11) at require('/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate/html/mod_menu/default.php') (/hp/aa/ac/uk/www/feuerwehr/modules/mod_menu/mod_menu.php:30) at include('/hp/aa/ac/uk/www/feuerwehr/modules/mod_menu/mod_menu.php') (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Dispatcher/ModuleDispatcher.php:52) at Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}(array(101), null) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Dispatcher/ModuleDispatcher.php:55) at Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Helper/ModuleHelper.php:281) at Joomla\CMS\Helper\ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('style' => 'sp_xhtml')) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Helper/ModuleHelper.php:161) at Joomla\CMS\Helper\ModuleHelper::renderModule(object(stdClass), array('style' => 'sp_xhtml')) (/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate/offcanvas/2-LeftBordered/canvas.php:69) at include('/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate/offcanvas/2-LeftBordered/canvas.php') (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Layout/FileLayout.php:128) at Joomla\CMS\Layout\FileLayout->render(object(stdClass)) (/hp/aa/ac/uk/www/feuerwehr/plugins/system/helixultimate/src/Core/HelixUltimate.php:1620) at HelixUltimate\Framework\Core\HelixUltimate->getOffcanvasStyle() (/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate/index.php:170) at require('/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate/index.php') (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Document/HtmlDocument.php:721) at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/hp/aa/ac/uk/www/feuerwehr/templates/shaper_helixultimate', 'index.php') (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Document/HtmlDocument.php:776) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'shaper_helixultimate', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/hp/aa/ac/uk/www/feuerwehr/templates')) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Document/HtmlDocument.php:612) at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'shaper_helixultimate', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/hp/aa/ac/uk/www/feuerwehr/templates')) (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Application/CMSApplication.php:1012) at Joomla\CMS\Application\CMSApplication->render() (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Application/SiteApplication.php:724) at Joomla\CMS\Application\SiteApplication->render() (/hp/aa/ac/uk/www/feuerwehr/libraries/src/Application/CMSApplication.php:298) at Joomla\CMS\Application\CMSApplication->execute() (/hp/aa/ac/uk/www/feuerwehr/includes/app.php:61) at require_once('/hp/aa/ac/uk/www/feuerwehr/includes/app.php') (/hp/aa/ac/uk/www/feuerwehr/index.php:32) |