*/ private function recompile(Template $_smarty_tpl) { $level = ob_get_level(); ob_start(); // call compiler try { eval('?>' . $this->doCompile($_smarty_tpl)); } catch (\Exception $e) { while (ob_get_level() > $level) { ob_end_clean(); } throw $e; } ob_get_clean(); $this->timestamp = time(); $this->exists = true; } /** * compile template from source * * @param Template $_template * * @throws Exception */ public function compileAndWrite(Template $_template) { // compile locking if ($saved_timestamp = (!$_template->getSource()->handler->recompiled && is_file($this->filepath))) { $saved_timestamp = $this->getTimeStamp(); touch($this->filepath); } // compile locking try { // call compiler $this->write($_template, $this->doCompile($_template)); } catch (\Exception $e) { // restore old timestamp in case of error if ($saved_timestamp && is_file($this->filepath)) { touch($this->filepath, $saved_timestamp); } throw $e; } } /** * Do the actual compiling. * * @param Template $_smarty_tpl * * @return string * @throws Exception */ private function doCompile(Template $_smarty_tpl): string { $this->file_dependency = []; $this->includes = []; $this->nocache_hash = null; $this->unifunc = null; return $_smarty_tpl->getCompiler()->compileTemplate($_smarty_tpl); } /** * Write compiled code by handler * * @param Template $_template template object * @param string $code compiled code * * @return bool success * @throws \Smarty\Exception */ private function write(Template $_template, $code) { if (!$_template->getSource()->handler->recompiled) { if ($_template->getSmarty()->writeFile($this->filepath, $code) === true) { $this->timestamp = $this->exists = is_file($this->filepath); if ($this->exists) { $this->timestamp = filemtime($this->filepath); return true; } } return false; } return true; } /** * Load fresh compiled template by including the PHP file * HHVM requires a workaround because of a PHP incompatibility * * @param Template $_smarty_tpl do not change/remove variable name, is used by compiled template * */ private function loadCompiledTemplate(Template $_smarty_tpl) { if (function_exists('opcache_invalidate') && (!function_exists('ini_get') || strlen(ini_get("opcache.restrict_api")) < 1) ) { opcache_invalidate($this->filepath, true); } elseif (function_exists('apc_compile_file')) { apc_compile_file($this->filepath); } if (defined('HHVM_VERSION')) { eval('?>' . file_get_contents($this->filepath)); } else { include $this->filepath; } } /** * This function is executed automatically when a compiled or cached template file is included * - Decode saved properties from compiled template and cache files * - Check if compiled or cache file is valid * * @param Template $_template * @param array $properties special template properties * * @return bool flag if compiled or cache file is valid * @throws Exception */ public function isFresh(Template $_template, array $properties): bool { // on cache resources other than file check version stored in cache code if (\Smarty\Smarty::SMARTY_VERSION !== $properties['version']) { return false; } $is_valid = true; if (!empty($properties['file_dependency']) && $_template->compile_check) { $is_valid = $this->checkFileDependencies($properties['file_dependency'], $_template); } $this->isValid = $is_valid; $this->includes = $properties['includes'] ?? []; if ($is_valid) { $this->unifunc = $properties['unifunc']; $this->setNocacheCode($properties['has_nocache_code']); $this->file_dependency = $properties['file_dependency']; } return $is_valid && !function_exists($properties['unifunc']); } /** * This method is here only to fix an issue when upgrading from Smarty v4 to v5. */ public function _decodeProperties($a, $b, $c = false): bool { return false; } } Onlineshop
Liebe Kundin, lieber Kunde.

Leider ist ein Fehler beim Aufruf unserer Webseite aufgetreten.
Bitte versuchen Sie es später noch einmal.
Vielen Dank für Ihr Verständnis - wir freuen uns auf Ihren nächsten Besuch.

Sollte das Problem weiterhin bestehen, wenden Sie sich bitte an unseren Kundenservice.

Dear customer.

Unfortunately an error occured when calling our website.
Please try again later.
Thank you for your understanding - we look forward to your next visit.

If the problem persists, please contact our customer service.
 Store 1
xt_shutdown_function
Array
(
    [type] => 1
    [message] => Uncaught Error: Class "Smarty\Template\Compiled" not found in /tank0/shop/xtFramework/library/vendor/smarty/smarty/src/Template.php:136
Stack trace:
#0 /tank0/shop/xtFramework/library/vendor/smarty/smarty/src/Smarty.php(2153): Smarty\Template->__construct()
#1 /tank0/shop/xtFramework/library/vendor/smarty/smarty/src/Smarty.php(946): Smarty\Smarty->doCreateTemplate()
#2 /tank0/shop/xtFramework/library/vendor/smarty/smarty/src/Smarty.php(2208): Smarty\Smarty->createTemplate()
#3 /tank0/shop/xtFramework/library/vendor/smarty/smarty/src/Smarty.php(2194): Smarty\Smarty->returnOrCreateTemplate()
#4 /tank0/shop/xtFramework/classes/class.Template.php(433): Smarty\Smarty->isCached()
#5 /tank0/shop/xtCore/pages/categories.php(51): Template->isTemplateCache()
#6 /tank0/shop/index.php(118): include('...')
#7 {main}
  thrown
    [file] => /tank0/shop/xtFramework/library/vendor/smarty/smarty/src/Template.php
    [line] => 136
)