Nette\Database\ConnectionException #HY000
SELECT `base_pagesLang`.*
FROM `base_pagesLang`
LEFT JOIN `base_languages` `language` ON `base_pagesLang`.`idLanguage` = `language`.`id`
WHERE (`idPage` = 49) AND (`language`.`shortcut` = 'cs')
File: .../krasa-zdravi.cz/vendor/nette/database/src/Database/ResultSet.php:78
68: $connection->getPdo()->{substr($queryString, 2)}(); 69: } elseif ($queryString !== null) { 70: $types = ['boolean' => PDO::PARAM_BOOL, 'integer' => PDO::PARAM_INT, 'resource' => PDO::PARAM_LOB, 'NULL' => PDO::PARAM_NULL]; 71: $this->pdoStatement = $connection->getPdo()->prepare($queryString); 72: foreach ($params as $key => $value) { 73: $type = gettype($value); 74: $this->pdoStatement->bindValue(is_int($key) ? $key + 1 : $key, $value, $types[$type] ?? PDO::PARAM_STR); 75: } 76: 77: $this->pdoStatement->setFetchMode(PDO::FETCH_ASSOC); 78: @$this->pdoStatement->execute(); // @ PHP generates warning when ATTR_ERRMODE = ERRMODE_EXCEPTION bug #73878 79: } 80: } catch (\PDOException $e) { 81: $e = $connection->getDriver()->convertException($e); 82: $e->queryString = $queryString;
51: public function convertException(\PDOException $e): Nette\Database\DriverException 52: { 53: $code = $e->errorInfo[1] ?? null; 54: if (in_array($code, [1216, 1217, 1451, 1452, 1701], true)) { 55: return Nette\Database\ForeignKeyConstraintViolationException::from($e); 56: 57: } elseif (in_array($code, [1062, 1557, 1569, 1586], true)) { 58: return Nette\Database\UniqueConstraintViolationException::from($e); 59: 60: } elseif ($code >= 2001 && $code <= 2028) { 61: return Nette\Database\ConnectionException::from($e); 62: 63: } elseif (in_array($code, [1048, 1121, 1138, 1171, 1252, 1263, 1566], true)) { 64: return Nette\Database\NotNullConstraintViolationException::from($e); 65:
| $src |
|---|
71: $this->pdoStatement = $connection->getPdo()->prepare($queryString); 72: foreach ($params as $key => $value) { 73: $type = gettype($value); 74: $this->pdoStatement->bindValue(is_int($key) ? $key + 1 : $key, $value, $types[$type] ?? PDO::PARAM_STR); 75: } 76: 77: $this->pdoStatement->setFetchMode(PDO::FETCH_ASSOC); 78: @$this->pdoStatement->execute(); // @ PHP generates warning when ATTR_ERRMODE = ERRMODE_EXCEPTION bug #73878 79: } 80: } catch (\PDOException $e) { 81: $e = $connection->getDriver()->convertException($e); 82: $e->queryString = $queryString; 83: $e->params = $params; 84: throw $e; 85: }
| $e |
|---|
223: 224: 225: /** 226: * Generates and executes SQL query. 227: * @param literal-string $sql 228: */ 229: public function query(string $sql, ...$params): ResultSet 230: { 231: [$this->sql, $params] = $this->preprocess($sql, ...$params); 232: try { 233: $result = new ResultSet($this, $this->sql, $params, $this->rowNormalizer); 234: } catch (PDOException $e) { 235: Arrays::invoke($this->onQuery, $this, $e); 236: throw $e; 237: }
| $connection | |
|---|---|
| $queryString | |
| $params | |
| $normalizer |
80: return $this->connection->getInsertId($sequence); 81: } 82: 83: 84: /** 85: * Generates and executes SQL query. 86: * @param literal-string $sql 87: */ 88: public function query(string $sql, ...$params): ResultSet 89: { 90: return $this->connection->query($sql, ...$params); 91: } 92: 93: 94: /** @deprecated use query() */
| $sql | |
|---|---|
| #1 | 49
|
| #2 | 'cs'
|
601: 602: 603: protected function createGroupedSelectionInstance(string $table, string $column): GroupedSelection 604: { 605: return new GroupedSelection($this->explorer, $this->conventions, $table, $column, $this, $this->cache ? $this->cache->getStorage() : null); 606: } 607: 608: 609: protected function query(string $query): Nette\Database\ResultSet 610: { 611: return $this->explorer->query($query, ...$this->sqlBuilder->getParameters()); 612: } 613: 614: 615: protected function emptyResultSet(bool $clearCache = true, bool $deleteRererencedCache = true): void
| $sql | |
|---|---|
| #1 | 49
|
| #2 | 'cs'
|
556: throw new Nette\InvalidStateException('Table with no primary key requires an explicit select clause.'); 557: } 558: 559: try { 560: $result = $this->query($this->getSql()); 561: 562: } catch (Nette\Database\DriverException $exception) { 563: if (!$this->sqlBuilder->getSelect() && $this->previousAccessedColumns) { 564: $this->previousAccessedColumns = false; 565: $this->accessedColumns = []; 566: $result = $this->query($this->getSql()); 567: } else { 568: throw $exception; 569: } 570: }
| $query |
|---|
201: $clone = clone $this; 202: return $clone->wherePrimary($key)->fetch(); 203: } 204: 205: 206: /** 207: * Fetches single row object. 208: */ 209: public function fetch(): ?ActiveRow 210: { 211: $this->execute(); 212: $return = current($this->data); 213: next($this->data); 214: return $return === false ? null : $return; 215: }
205: */ 206: public function findLangByID( $id, $lang, $table, $key ) 207: { 208: if ( empty( $lang ) ) 209: return false; 210: 211: $data = $this->database->table( $table . 'Lang' ) 212: ->where( $key, $id ) 213: ->where( Languages::SHORTCUT_REF, $lang ); 214: 215: return $data->fetch(); 216: } 217: 218: /** 219: * Metoda hleda zaznam v jakekoliv zadane tabulce dle ID. Vyuziva se ve
50: $link = '#'; 51: $action = null; 52: $params = ['locale' => $this->getLang()]; 53: 54: if( $this->modulePart ) 55: { 56: $linkGenerator = $this->getDIContainer()->getByType( LinkGenerator::class ); 57: 58: if ( $this->modulePart->data()->lang ) 59: { 60: $row = $this->getModelSlugs()->findLangByID( $this->idItem, $this->getLang(), $this->modulePart->table, $this->modulePart->key ); 61: 62: if ( $row ) 63: { 64: $params['slug'] = $row->slug;
| $id | 49
|
|---|---|
| $lang | 'cs'
|
| $table | 'base_pages'
|
| $key | 'idPage'
|
37: 38: /** {block menicko} on line 14 */ 39: public function blockMenicko(array $ʟ_args): void 40: { 41: extract($this->params); 42: extract($ʟ_args); 43: unset($ʟ_args); 44: $level = $level + 1 /* line 15 */; 45: $iterations = 0; 46: foreach ($iterator = $ʟ_it = new LR\CachingIterator($items, $ʟ_it ?? null) as $item) /* line 16 */ { 47: $linkData = $item->getLink() /* line 17 */; 48: $children = $item->children( array( ":base_menuItemsLang.active" => 1, ":base_menuItemsLang.language.shortcut" => $presenter->locale ), 'rank' ) /* line 18 */; 49: if ($level == 1) /* line 20 */ { 50: echo ' <li> 51: <a href="';
7: * + Komponenty - http://cms.impnet.cz/dokumentace/php/namespaces/App.Components.html 8: * + Model - http://cms.impnet.cz/dokumentace/php/namespaces/App.Model.html 9: * - Dokumentace bohuzel nemusi sedet na aktualni verzi CMS 10: *} 11: 12: {if $items} 13: {var $level = 0} 14: {block menicko} 15: {var $level = $level + 1} 16: {foreach $items as $item} 17: {var $linkData = $item->getLink()} 18: {var $children = $item->children( array( ":base_menuItemsLang.active" => 1, ":base_menuItemsLang.language.shortcut" => $presenter->locale ), 'rank' )} 19: {* ************************ VYPIS POLOZEK ******************************* *} 20: {if $level == 1} 21: <li>
299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name" 313: );
| $ʟ_args | null
|
|---|
354: $block->functions = array_merge($block->functions, $functions); 355: } 356: 357: 358: /** 359: * @param string|\Closure|null $mod content-type name or modifier closure 360: */ 361: private function filter(callable $function, $mod, string $contentType, string $name): void 362: { 363: if ($mod === null || $mod === $contentType) { 364: $function(); 365: 366: } elseif ($mod instanceof \Closure) { 367: echo $mod($this->capture($function), $contentType); 368:
298: : ($this->blocks[self::LAYER_LOCAL][$name] ?? $this->blocks[self::LAYER_TOP][$name] ?? null); 299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name"
| $function | |
|---|---|
| $mod | 'html'
|
| $contentType | 'html'
|
| $name | 'block menicko'
|
51: <a href="'; 52: echo LR\Filters::escapeHtmlAttr(LR\Filters::safeUrl($linkData['link'])) /* line 22 */; 53: echo '">'; 54: echo LR\Filters::escapeHtmlText($item->locale()->title) /* line 22 */; 55: echo '</a> 56: '; 57: if (count($children)) /* line 23 */ { 58: echo ' <a class="arrow-resp"><i class="mdi mdi-menu-down"></i></a> 59: <ul class="uk-nav-sub"> 60: '; 61: $this->renderBlock('menicko', ['level' => $level, 'items' => $children] + get_defined_vars(), 'html') /* line 26 */; 62: echo ' </ul> 63: '; 64: } 65: echo ' </li>
16: {foreach $items as $item} 17: {var $linkData = $item->getLink()} 18: {var $children = $item->children( array( ":base_menuItemsLang.active" => 1, ":base_menuItemsLang.language.shortcut" => $presenter->locale ), 'rank' )} 19: {* ************************ VYPIS POLOZEK ******************************* *} 20: {if $level == 1} 21: <li> 22: <a href="{$linkData['link']}">{$item->locale()->title}</a> 23: {if count($children)} 24: <a class="arrow-resp"><i class="mdi mdi-menu-down"></i></a> 25: <ul class="uk-nav-sub"> 26: {include menicko, level => $level, items => $children} 27: </ul> 28: {/if} 29: </li> 30: {elseif $level == 2}
| $name | 'menicko'
|
|---|---|
| $params | |
| $mod | 'html'
|
299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name" 313: );
| $ʟ_args | null
|
|---|
354: $block->functions = array_merge($block->functions, $functions); 355: } 356: 357: 358: /** 359: * @param string|\Closure|null $mod content-type name or modifier closure 360: */ 361: private function filter(callable $function, $mod, string $contentType, string $name): void 362: { 363: if ($mod === null || $mod === $contentType) { 364: $function(); 365: 366: } elseif ($mod instanceof \Closure) { 367: echo $mod($this->capture($function), $contentType); 368:
298: : ($this->blocks[self::LAYER_LOCAL][$name] ?? $this->blocks[self::LAYER_TOP][$name] ?? null); 299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name"
| $function | |
|---|---|
| $mod | null
|
| $contentType | 'html'
|
| $name | 'block menicko'
|
8: protected const BLOCKS = [ 9: ['menicko' => 'blockMenicko'], 10: ]; 11: 12: 13: public function main(): array 14: { 15: extract($this->params); 16: if ($items) /* line 12 */ { 17: $level = 0 /* line 13 */; 18: $this->renderBlock('menicko', get_defined_vars()) /* line 14 */; 19: echo "\n"; 20: } 21: return get_defined_vars(); 22: }
4: * Napoveda: 5: * - Pro funkce modelu je mozno pouzit vygenerovanou dokumentaci pro CMS: 6: * + Cela dokumentace - http://cms.impnet.cz/dokumentace/php/ 7: * + Komponenty - http://cms.impnet.cz/dokumentace/php/namespaces/App.Components.html 8: * + Model - http://cms.impnet.cz/dokumentace/php/namespaces/App.Model.html 9: * - Dokumentace bohuzel nemusi sedet na aktualni verzi CMS 10: *} 11: 12: {if $items} 13: {var $level = 0} 14: {block menicko} 15: {var $level = $level + 1} 16: {foreach $items as $item} 17: {var $linkData = $item->getLink()} 18: {var $children = $item->children( array( ":base_menuItemsLang.active" => 1, ":base_menuItemsLang.language.shortcut" => $presenter->locale ), 'rank' )}
| $name | 'menicko'
|
|---|---|
| $params |
161: /** 162: * Renders template. 163: * @internal 164: */ 165: public function render(?string $block = null): void 166: { 167: $level = ob_get_level(); 168: try { 169: $this->prepare(); 170: if (!$this->doRender($block)) { 171: $this->main(); 172: } 173: 174: } catch (\Throwable $e) { 175: while (ob_get_level() > $level) {
92: 93: /** 94: * Renders template to output. 95: * @param object|mixed[] $params 96: */ 97: public function render(string $name, $params = [], ?string $block = null): void 98: { 99: $template = $this->createTemplate($name, $this->processParams($params)); 100: $template->global->coreCaptured = false; 101: ($this->probe)($template); 102: $template->render($block); 103: } 104: 105: 106: /**
| $block | null
|
|---|
36: return $this->latte; 37: } 38: 39: 40: /** 41: * Renders template to output. 42: */ 43: public function render(?string $file = null, array $params = []): void 44: { 45: Nette\Utils\Arrays::toObject($params, $this); 46: $this->latte->render($file ?: $this->file, $this); 47: } 48: 49: 50: /**
| $name | '/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/theme/FrontendModule/Components/Menu/responsive_menu.latte'
|
|---|---|
| $params |
106: // menu odkazuje na predka stranky [a treba ji pridat class active]) 107: // tj. pridame cely model k dispozici: 108: $template->modelPages = $this->pages; 109: } 110: else 111: { 112: $template->items = null; 113: } 114: 115: // vykreslíme ji 116: $template->render(); 117: } 118: 119: } 120:
157: echo '<i class="mdi mdi-menu-down"></i>'; 158: } 159: echo ' 160: </a> 161: '; 162: if (count( $m->allBaseMenuItems )) /* line 245 */ { 163: echo ' <ul class="" data-uk-nav> 164: '; 165: /* line 247 */ $_tmp = $this->global->uiControl->getComponent("menu"); 166: if ($_tmp instanceof Nette\Application\UI\Renderable) $_tmp->redrawControl(null, false); 167: $_tmp->render('services', 'responsive_menu'); 168: echo ' </ul> 169: '; 170: } 171: echo ' </li>
1: {* 2: Ještě potřeba donasadit <!-- search popUp --> nevím jak to je s tím vyhledávačem 3: plus porovnávač v middleBar - linkPack 4: nasazení dopravy v topBar -> jestli tam chceme selecty ,tak potom dostyluju ;-) 5: *} 6: <header> 7: {* <section class="topBar"> 8: <div class="container"> 9: <div class="uk-grid-small" data-uk-grid> 10: <div class="uk-width-auto"> 11: <ul class="menu uk-visible@m"> 12: {control menu 'topbar', 'topbar_menu'} 13: </ul> 14: <a href="{link Homepage:default}" class="logo uk-hidden@m"> 15: <picture>
| $class | 'services'
|
|---|---|
| $customTemplate | 'responsive_menu'
|
161: /** 162: * Renders template. 163: * @internal 164: */ 165: public function render(?string $block = null): void 166: { 167: $level = ob_get_level(); 168: try { 169: $this->prepare(); 170: if (!$this->doRender($block)) { 171: $this->main(); 172: } 173: 174: } catch (\Throwable $e) { 175: while (ob_get_level() > $level) {
250: } 251: 252: 253: /** 254: * @param string|\Closure|null $mod content-type name or modifier closure 255: * @internal 256: */ 257: public function renderToContentType($mod, ?string $block = null): void 258: { 259: $this->filter( 260: function () use ($block) { $this->render($block); }, 261: $mod, 262: static::CONTENT_TYPE, 263: "'$this->name'" 264: );
| $block | null
|
|---|
354: $block->functions = array_merge($block->functions, $functions); 355: } 356: 357: 358: /** 359: * @param string|\Closure|null $mod content-type name or modifier closure 360: */ 361: private function filter(callable $function, $mod, string $contentType, string $name): void 362: { 363: if ($mod === null || $mod === $contentType) { 364: $function(); 365: 366: } elseif ($mod instanceof \Closure) { 367: echo $mod($this->capture($function), $contentType); 368:
249: return $referred; 250: } 251: 252: 253: /** 254: * @param string|\Closure|null $mod content-type name or modifier closure 255: * @internal 256: */ 257: public function renderToContentType($mod, ?string $block = null): void 258: { 259: $this->filter( 260: function () use ($block) { $this->render($block); }, 261: $mod, 262: static::CONTENT_TYPE, 263: "'$this->name'"
| $function | |
|---|---|
| $mod | 'html'
|
| $contentType | 'html'
|
| $name | ''/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/theme/FrontendModule/templates/@header.latte''
|
158: } 159: 160: 161: /** {block bodyStructure} on line 66 */ 162: public function blockBodyStructure(array $ʟ_args): void 163: { 164: extract($this->params); 165: extract($ʟ_args); 166: unset($ʟ_args); 167: echo "\n"; 168: $this->createTemplate('@header.latte', $this->params, 'include')->renderToContentType('html') /* line 68 */; 169: echo "\n"; 170: $this->renderBlock('content', [], 'html') /* line 70 */; 171: echo "\n"; 172: $this->createTemplate('@footer.latte', $this->params, 'include')->renderToContentType('html') /* line 72 */;
58: {include block canonical} 59: {else} 60: <link n:ifset="$canonicalLink" rel="canonical" href="{$canonicalLink}"/> 61: {/ifset} 62: </head> 63: <body n:class="$bodyClass ? $bodyClass"> 64: {control scripts, 'body'} 65: 66: {block bodyStructure} 67: 68: {include '@header.latte'} 69: 70: {include block content} 71: 72: {include '@footer.latte'}
| $mod | 'html'
|
|---|
299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name" 313: );
| $ʟ_args | null
|
|---|
354: $block->functions = array_merge($block->functions, $functions); 355: } 356: 357: 358: /** 359: * @param string|\Closure|null $mod content-type name or modifier closure 360: */ 361: private function filter(callable $function, $mod, string $contentType, string $name): void 362: { 363: if ($mod === null || $mod === $contentType) { 364: $function(); 365: 366: } elseif ($mod instanceof \Closure) { 367: echo $mod($this->capture($function), $contentType); 368:
298: : ($this->blocks[self::LAYER_LOCAL][$name] ?? $this->blocks[self::LAYER_TOP][$name] ?? null); 299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name"
| $function | |
|---|---|
| $mod | null
|
| $contentType | 'html'
|
| $name | 'block bodyStructure'
|
125: } 126: echo ' </head> 127: <body'; 128: echo ($ʟ_tmp = array_filter([$bodyClass ? $bodyClass : null])) ? ' class="' . LR\Filters::escapeHtmlAttr(implode(" ", array_unique($ʟ_tmp))) . '"' : "" /* line 63 */; 129: echo '> 130: '; 131: /* line 64 */ $_tmp = $this->global->uiControl->getComponent("scripts"); 132: if ($_tmp instanceof Nette\Application\UI\Renderable) $_tmp->redrawControl(null, false); 133: $_tmp->render('body'); 134: echo "\n"; 135: $this->renderBlock('bodyStructure', get_defined_vars()) /* line 66 */; 136: echo ' 137: 138: '; 139: $this->renderBlock('scriptsSnippetArea', [], null, 'snippet') /* line 95 */;
56: 57: {ifset block canonical} 58: {include block canonical} 59: {else} 60: <link n:ifset="$canonicalLink" rel="canonical" href="{$canonicalLink}"/> 61: {/ifset} 62: </head> 63: <body n:class="$bodyClass ? $bodyClass"> 64: {control scripts, 'body'} 65: 66: {block bodyStructure} 67: 68: {include '@header.latte'} 69: 70: {include block content}
| $name | 'bodyStructure'
|
|---|---|
| $params |
161: /** 162: * Renders template. 163: * @internal 164: */ 165: public function render(?string $block = null): void 166: { 167: $level = ob_get_level(); 168: try { 169: $this->prepare(); 170: if (!$this->doRender($block)) { 171: $this->main(); 172: } 173: 174: } catch (\Throwable $e) { 175: while (ob_get_level() > $level) {
193: 194: if ($this->referenceType === 'import') { 195: if ($this->parentName) { 196: throw new Latte\RuntimeException('Imported template cannot use {extends} or {layout}, use {import}'); 197: } 198: 199: } elseif ($this->parentName) { // extends 200: ob_start(function () {}); 201: $this->params = $this->main(); 202: ob_end_clean(); 203: $this->createTemplate($this->parentName, $this->params, 'extends')->render($block); 204: 205: } elseif ($block !== null) { // single block rendering 206: $this->renderBlock($block, $this->params); 207:
| $block | null
|
|---|
160: 161: /** 162: * Renders template. 163: * @internal 164: */ 165: public function render(?string $block = null): void 166: { 167: $level = ob_get_level(); 168: try { 169: $this->prepare(); 170: if (!$this->doRender($block)) { 171: $this->main(); 172: } 173: 174: } catch (\Throwable $e) {
| $block | null
|
|---|
92: 93: /** 94: * Renders template to output. 95: * @param object|mixed[] $params 96: */ 97: public function render(string $name, $params = [], ?string $block = null): void 98: { 99: $template = $this->createTemplate($name, $this->processParams($params)); 100: $template->global->coreCaptured = false; 101: ($this->probe)($template); 102: $template->render($block); 103: } 104: 105: 106: /**
| $block | null
|
|---|
36: return $this->latte; 37: } 38: 39: 40: /** 41: * Renders template to output. 42: */ 43: public function render(?string $file = null, array $params = []): void 44: { 45: Nette\Utils\Arrays::toObject($params, $this); 46: $this->latte->render($file ?: $this->file, $this); 47: } 48: 49: 50: /**
| $name | '/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/theme/FrontendModule/templates/BlogPost/detail.latte'
|
|---|---|
| $params |
40: return $this->source; 41: } 42: 43: 44: /** 45: * Sends response to output. 46: */ 47: public function send(Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse): void 48: { 49: if ($this->source instanceof Nette\Application\UI\Template) { 50: $this->source->render(); 51: 52: } else { 53: echo $this->source; 54: }
161: 162: Arrays::invoke($this->onPresenter, $this, $this->presenter); 163: $response = $this->presenter->run(clone $request); 164: 165: if ($response instanceof Responses\ForwardResponse) { 166: $request = $response->getRequest(); 167: goto process; 168: } 169: 170: Arrays::invoke($this->onResponse, $this, $response); 171: $response->send($this->httpRequest, $this->httpResponse); 172: } 173: 174: 175: public function processException(\Throwable $e): void
| $httpRequest | |
|---|---|
| $httpResponse |
80: } 81: 82: 83: /** 84: * Dispatch a HTTP request to a front controller. 85: */ 86: public function run(): void 87: { 88: try { 89: Arrays::invoke($this->onStartup, $this); 90: $this->processRequest($this->createInitialRequest()); 91: Arrays::invoke($this->onShutdown, $this); 92: 93: } catch (\Throwable $e) { 94: Arrays::invoke($this->onError, $this, $e);
| $request |
|---|
13: 14: if ( array_key_exists( 'time_limit', $parameters ) ) { 15: @set_time_limit( $parameters['time_limit'] ); 16: } 17: 18: if ( array_key_exists( 'memory_limit', $parameters ) ) { 19: @ini_set( 'memory_limit', $parameters['memory_limit'] . 'M' ); 20: } 21: 22: $application = $container->getByType(Application::class); 23: $application->run();
PDOException #HY000
File: .../krasa-zdravi.cz/vendor/nette/database/src/Database/ResultSet.php:78
68: $connection->getPdo()->{substr($queryString, 2)}(); 69: } elseif ($queryString !== null) { 70: $types = ['boolean' => PDO::PARAM_BOOL, 'integer' => PDO::PARAM_INT, 'resource' => PDO::PARAM_LOB, 'NULL' => PDO::PARAM_NULL]; 71: $this->pdoStatement = $connection->getPdo()->prepare($queryString); 72: foreach ($params as $key => $value) { 73: $type = gettype($value); 74: $this->pdoStatement->bindValue(is_int($key) ? $key + 1 : $key, $value, $types[$type] ?? PDO::PARAM_STR); 75: } 76: 77: $this->pdoStatement->setFetchMode(PDO::FETCH_ASSOC); 78: @$this->pdoStatement->execute(); // @ PHP generates warning when ATTR_ERRMODE = ERRMODE_EXCEPTION bug #73878 79: } 80: } catch (\PDOException $e) { 81: $e = $connection->getDriver()->convertException($e); 82: $e->queryString = $queryString;
68: $connection->getPdo()->{substr($queryString, 2)}(); 69: } elseif ($queryString !== null) { 70: $types = ['boolean' => PDO::PARAM_BOOL, 'integer' => PDO::PARAM_INT, 'resource' => PDO::PARAM_LOB, 'NULL' => PDO::PARAM_NULL]; 71: $this->pdoStatement = $connection->getPdo()->prepare($queryString); 72: foreach ($params as $key => $value) { 73: $type = gettype($value); 74: $this->pdoStatement->bindValue(is_int($key) ? $key + 1 : $key, $value, $types[$type] ?? PDO::PARAM_STR); 75: } 76: 77: $this->pdoStatement->setFetchMode(PDO::FETCH_ASSOC); 78: @$this->pdoStatement->execute(); // @ PHP generates warning when ATTR_ERRMODE = ERRMODE_EXCEPTION bug #73878 79: } 80: } catch (\PDOException $e) { 81: $e = $connection->getDriver()->convertException($e); 82: $e->queryString = $queryString;
223: 224: 225: /** 226: * Generates and executes SQL query. 227: * @param literal-string $sql 228: */ 229: public function query(string $sql, ...$params): ResultSet 230: { 231: [$this->sql, $params] = $this->preprocess($sql, ...$params); 232: try { 233: $result = new ResultSet($this, $this->sql, $params, $this->rowNormalizer); 234: } catch (PDOException $e) { 235: Arrays::invoke($this->onQuery, $this, $e); 236: throw $e; 237: }
| $connection | |
|---|---|
| $queryString | |
| $params | |
| $normalizer |
80: return $this->connection->getInsertId($sequence); 81: } 82: 83: 84: /** 85: * Generates and executes SQL query. 86: * @param literal-string $sql 87: */ 88: public function query(string $sql, ...$params): ResultSet 89: { 90: return $this->connection->query($sql, ...$params); 91: } 92: 93: 94: /** @deprecated use query() */
| $sql | |
|---|---|
| #1 | 49
|
| #2 | 'cs'
|
601: 602: 603: protected function createGroupedSelectionInstance(string $table, string $column): GroupedSelection 604: { 605: return new GroupedSelection($this->explorer, $this->conventions, $table, $column, $this, $this->cache ? $this->cache->getStorage() : null); 606: } 607: 608: 609: protected function query(string $query): Nette\Database\ResultSet 610: { 611: return $this->explorer->query($query, ...$this->sqlBuilder->getParameters()); 612: } 613: 614: 615: protected function emptyResultSet(bool $clearCache = true, bool $deleteRererencedCache = true): void
| $sql | |
|---|---|
| #1 | 49
|
| #2 | 'cs'
|
556: throw new Nette\InvalidStateException('Table with no primary key requires an explicit select clause.'); 557: } 558: 559: try { 560: $result = $this->query($this->getSql()); 561: 562: } catch (Nette\Database\DriverException $exception) { 563: if (!$this->sqlBuilder->getSelect() && $this->previousAccessedColumns) { 564: $this->previousAccessedColumns = false; 565: $this->accessedColumns = []; 566: $result = $this->query($this->getSql()); 567: } else { 568: throw $exception; 569: } 570: }
| $query |
|---|
201: $clone = clone $this; 202: return $clone->wherePrimary($key)->fetch(); 203: } 204: 205: 206: /** 207: * Fetches single row object. 208: */ 209: public function fetch(): ?ActiveRow 210: { 211: $this->execute(); 212: $return = current($this->data); 213: next($this->data); 214: return $return === false ? null : $return; 215: }
205: */ 206: public function findLangByID( $id, $lang, $table, $key ) 207: { 208: if ( empty( $lang ) ) 209: return false; 210: 211: $data = $this->database->table( $table . 'Lang' ) 212: ->where( $key, $id ) 213: ->where( Languages::SHORTCUT_REF, $lang ); 214: 215: return $data->fetch(); 216: } 217: 218: /** 219: * Metoda hleda zaznam v jakekoliv zadane tabulce dle ID. Vyuziva se ve
50: $link = '#'; 51: $action = null; 52: $params = ['locale' => $this->getLang()]; 53: 54: if( $this->modulePart ) 55: { 56: $linkGenerator = $this->getDIContainer()->getByType( LinkGenerator::class ); 57: 58: if ( $this->modulePart->data()->lang ) 59: { 60: $row = $this->getModelSlugs()->findLangByID( $this->idItem, $this->getLang(), $this->modulePart->table, $this->modulePart->key ); 61: 62: if ( $row ) 63: { 64: $params['slug'] = $row->slug;
| $id | 49
|
|---|---|
| $lang | 'cs'
|
| $table | 'base_pages'
|
| $key | 'idPage'
|
37: 38: /** {block menicko} on line 14 */ 39: public function blockMenicko(array $ʟ_args): void 40: { 41: extract($this->params); 42: extract($ʟ_args); 43: unset($ʟ_args); 44: $level = $level + 1 /* line 15 */; 45: $iterations = 0; 46: foreach ($iterator = $ʟ_it = new LR\CachingIterator($items, $ʟ_it ?? null) as $item) /* line 16 */ { 47: $linkData = $item->getLink() /* line 17 */; 48: $children = $item->children( array( ":base_menuItemsLang.active" => 1, ":base_menuItemsLang.language.shortcut" => $presenter->locale ), 'rank' ) /* line 18 */; 49: if ($level == 1) /* line 20 */ { 50: echo ' <li> 51: <a href="';
7: * + Komponenty - http://cms.impnet.cz/dokumentace/php/namespaces/App.Components.html 8: * + Model - http://cms.impnet.cz/dokumentace/php/namespaces/App.Model.html 9: * - Dokumentace bohuzel nemusi sedet na aktualni verzi CMS 10: *} 11: 12: {if $items} 13: {var $level = 0} 14: {block menicko} 15: {var $level = $level + 1} 16: {foreach $items as $item} 17: {var $linkData = $item->getLink()} 18: {var $children = $item->children( array( ":base_menuItemsLang.active" => 1, ":base_menuItemsLang.language.shortcut" => $presenter->locale ), 'rank' )} 19: {* ************************ VYPIS POLOZEK ******************************* *} 20: {if $level == 1} 21: <li>
299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name" 313: );
| $ʟ_args | null
|
|---|
354: $block->functions = array_merge($block->functions, $functions); 355: } 356: 357: 358: /** 359: * @param string|\Closure|null $mod content-type name or modifier closure 360: */ 361: private function filter(callable $function, $mod, string $contentType, string $name): void 362: { 363: if ($mod === null || $mod === $contentType) { 364: $function(); 365: 366: } elseif ($mod instanceof \Closure) { 367: echo $mod($this->capture($function), $contentType); 368:
298: : ($this->blocks[self::LAYER_LOCAL][$name] ?? $this->blocks[self::LAYER_TOP][$name] ?? null); 299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name"
| $function | |
|---|---|
| $mod | 'html'
|
| $contentType | 'html'
|
| $name | 'block menicko'
|
51: <a href="'; 52: echo LR\Filters::escapeHtmlAttr(LR\Filters::safeUrl($linkData['link'])) /* line 22 */; 53: echo '">'; 54: echo LR\Filters::escapeHtmlText($item->locale()->title) /* line 22 */; 55: echo '</a> 56: '; 57: if (count($children)) /* line 23 */ { 58: echo ' <a class="arrow-resp"><i class="mdi mdi-menu-down"></i></a> 59: <ul class="uk-nav-sub"> 60: '; 61: $this->renderBlock('menicko', ['level' => $level, 'items' => $children] + get_defined_vars(), 'html') /* line 26 */; 62: echo ' </ul> 63: '; 64: } 65: echo ' </li>
16: {foreach $items as $item} 17: {var $linkData = $item->getLink()} 18: {var $children = $item->children( array( ":base_menuItemsLang.active" => 1, ":base_menuItemsLang.language.shortcut" => $presenter->locale ), 'rank' )} 19: {* ************************ VYPIS POLOZEK ******************************* *} 20: {if $level == 1} 21: <li> 22: <a href="{$linkData['link']}">{$item->locale()->title}</a> 23: {if count($children)} 24: <a class="arrow-resp"><i class="mdi mdi-menu-down"></i></a> 25: <ul class="uk-nav-sub"> 26: {include menicko, level => $level, items => $children} 27: </ul> 28: {/if} 29: </li> 30: {elseif $level == 2}
| $name | 'menicko'
|
|---|---|
| $params | |
| $mod | 'html'
|
299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name" 313: );
| $ʟ_args | null
|
|---|
354: $block->functions = array_merge($block->functions, $functions); 355: } 356: 357: 358: /** 359: * @param string|\Closure|null $mod content-type name or modifier closure 360: */ 361: private function filter(callable $function, $mod, string $contentType, string $name): void 362: { 363: if ($mod === null || $mod === $contentType) { 364: $function(); 365: 366: } elseif ($mod instanceof \Closure) { 367: echo $mod($this->capture($function), $contentType); 368:
298: : ($this->blocks[self::LAYER_LOCAL][$name] ?? $this->blocks[self::LAYER_TOP][$name] ?? null); 299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name"
| $function | |
|---|---|
| $mod | null
|
| $contentType | 'html'
|
| $name | 'block menicko'
|
8: protected const BLOCKS = [ 9: ['menicko' => 'blockMenicko'], 10: ]; 11: 12: 13: public function main(): array 14: { 15: extract($this->params); 16: if ($items) /* line 12 */ { 17: $level = 0 /* line 13 */; 18: $this->renderBlock('menicko', get_defined_vars()) /* line 14 */; 19: echo "\n"; 20: } 21: return get_defined_vars(); 22: }
4: * Napoveda: 5: * - Pro funkce modelu je mozno pouzit vygenerovanou dokumentaci pro CMS: 6: * + Cela dokumentace - http://cms.impnet.cz/dokumentace/php/ 7: * + Komponenty - http://cms.impnet.cz/dokumentace/php/namespaces/App.Components.html 8: * + Model - http://cms.impnet.cz/dokumentace/php/namespaces/App.Model.html 9: * - Dokumentace bohuzel nemusi sedet na aktualni verzi CMS 10: *} 11: 12: {if $items} 13: {var $level = 0} 14: {block menicko} 15: {var $level = $level + 1} 16: {foreach $items as $item} 17: {var $linkData = $item->getLink()} 18: {var $children = $item->children( array( ":base_menuItemsLang.active" => 1, ":base_menuItemsLang.language.shortcut" => $presenter->locale ), 'rank' )}
| $name | 'menicko'
|
|---|---|
| $params |
161: /** 162: * Renders template. 163: * @internal 164: */ 165: public function render(?string $block = null): void 166: { 167: $level = ob_get_level(); 168: try { 169: $this->prepare(); 170: if (!$this->doRender($block)) { 171: $this->main(); 172: } 173: 174: } catch (\Throwable $e) { 175: while (ob_get_level() > $level) {
92: 93: /** 94: * Renders template to output. 95: * @param object|mixed[] $params 96: */ 97: public function render(string $name, $params = [], ?string $block = null): void 98: { 99: $template = $this->createTemplate($name, $this->processParams($params)); 100: $template->global->coreCaptured = false; 101: ($this->probe)($template); 102: $template->render($block); 103: } 104: 105: 106: /**
| $block | null
|
|---|
36: return $this->latte; 37: } 38: 39: 40: /** 41: * Renders template to output. 42: */ 43: public function render(?string $file = null, array $params = []): void 44: { 45: Nette\Utils\Arrays::toObject($params, $this); 46: $this->latte->render($file ?: $this->file, $this); 47: } 48: 49: 50: /**
| $name | '/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/theme/FrontendModule/Components/Menu/responsive_menu.latte'
|
|---|---|
| $params |
106: // menu odkazuje na predka stranky [a treba ji pridat class active]) 107: // tj. pridame cely model k dispozici: 108: $template->modelPages = $this->pages; 109: } 110: else 111: { 112: $template->items = null; 113: } 114: 115: // vykreslíme ji 116: $template->render(); 117: } 118: 119: } 120:
157: echo '<i class="mdi mdi-menu-down"></i>'; 158: } 159: echo ' 160: </a> 161: '; 162: if (count( $m->allBaseMenuItems )) /* line 245 */ { 163: echo ' <ul class="" data-uk-nav> 164: '; 165: /* line 247 */ $_tmp = $this->global->uiControl->getComponent("menu"); 166: if ($_tmp instanceof Nette\Application\UI\Renderable) $_tmp->redrawControl(null, false); 167: $_tmp->render('services', 'responsive_menu'); 168: echo ' </ul> 169: '; 170: } 171: echo ' </li>
1: {* 2: Ještě potřeba donasadit <!-- search popUp --> nevím jak to je s tím vyhledávačem 3: plus porovnávač v middleBar - linkPack 4: nasazení dopravy v topBar -> jestli tam chceme selecty ,tak potom dostyluju ;-) 5: *} 6: <header> 7: {* <section class="topBar"> 8: <div class="container"> 9: <div class="uk-grid-small" data-uk-grid> 10: <div class="uk-width-auto"> 11: <ul class="menu uk-visible@m"> 12: {control menu 'topbar', 'topbar_menu'} 13: </ul> 14: <a href="{link Homepage:default}" class="logo uk-hidden@m"> 15: <picture>
| $class | 'services'
|
|---|---|
| $customTemplate | 'responsive_menu'
|
161: /** 162: * Renders template. 163: * @internal 164: */ 165: public function render(?string $block = null): void 166: { 167: $level = ob_get_level(); 168: try { 169: $this->prepare(); 170: if (!$this->doRender($block)) { 171: $this->main(); 172: } 173: 174: } catch (\Throwable $e) { 175: while (ob_get_level() > $level) {
250: } 251: 252: 253: /** 254: * @param string|\Closure|null $mod content-type name or modifier closure 255: * @internal 256: */ 257: public function renderToContentType($mod, ?string $block = null): void 258: { 259: $this->filter( 260: function () use ($block) { $this->render($block); }, 261: $mod, 262: static::CONTENT_TYPE, 263: "'$this->name'" 264: );
| $block | null
|
|---|
354: $block->functions = array_merge($block->functions, $functions); 355: } 356: 357: 358: /** 359: * @param string|\Closure|null $mod content-type name or modifier closure 360: */ 361: private function filter(callable $function, $mod, string $contentType, string $name): void 362: { 363: if ($mod === null || $mod === $contentType) { 364: $function(); 365: 366: } elseif ($mod instanceof \Closure) { 367: echo $mod($this->capture($function), $contentType); 368:
249: return $referred; 250: } 251: 252: 253: /** 254: * @param string|\Closure|null $mod content-type name or modifier closure 255: * @internal 256: */ 257: public function renderToContentType($mod, ?string $block = null): void 258: { 259: $this->filter( 260: function () use ($block) { $this->render($block); }, 261: $mod, 262: static::CONTENT_TYPE, 263: "'$this->name'"
| $function | |
|---|---|
| $mod | 'html'
|
| $contentType | 'html'
|
| $name | ''/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/theme/FrontendModule/templates/@header.latte''
|
158: } 159: 160: 161: /** {block bodyStructure} on line 66 */ 162: public function blockBodyStructure(array $ʟ_args): void 163: { 164: extract($this->params); 165: extract($ʟ_args); 166: unset($ʟ_args); 167: echo "\n"; 168: $this->createTemplate('@header.latte', $this->params, 'include')->renderToContentType('html') /* line 68 */; 169: echo "\n"; 170: $this->renderBlock('content', [], 'html') /* line 70 */; 171: echo "\n"; 172: $this->createTemplate('@footer.latte', $this->params, 'include')->renderToContentType('html') /* line 72 */;
58: {include block canonical} 59: {else} 60: <link n:ifset="$canonicalLink" rel="canonical" href="{$canonicalLink}"/> 61: {/ifset} 62: </head> 63: <body n:class="$bodyClass ? $bodyClass"> 64: {control scripts, 'body'} 65: 66: {block bodyStructure} 67: 68: {include '@header.latte'} 69: 70: {include block content} 71: 72: {include '@footer.latte'}
| $mod | 'html'
|
|---|
299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name" 313: );
| $ʟ_args | null
|
|---|
354: $block->functions = array_merge($block->functions, $functions); 355: } 356: 357: 358: /** 359: * @param string|\Closure|null $mod content-type name or modifier closure 360: */ 361: private function filter(callable $function, $mod, string $contentType, string $name): void 362: { 363: if ($mod === null || $mod === $contentType) { 364: $function(); 365: 366: } elseif ($mod instanceof \Closure) { 367: echo $mod($this->capture($function), $contentType); 368:
298: : ($this->blocks[self::LAYER_LOCAL][$name] ?? $this->blocks[self::LAYER_TOP][$name] ?? null); 299: 300: if (!$block) { 301: $hint = ($t = Latte\Helpers::getSuggestion($this->getBlockNames($layer), $name)) 302: ? ", did you mean '$t'?" 303: : '.'; 304: $name = $layer ? "$layer $name" : $name; 305: throw new Latte\RuntimeException("Cannot include undefined block '$name'$hint"); 306: } 307: 308: $this->filter( 309: function () use ($block, $params): void { reset($block->functions)($params); }, 310: $mod, 311: $block->contentType, 312: "block $name"
| $function | |
|---|---|
| $mod | null
|
| $contentType | 'html'
|
| $name | 'block bodyStructure'
|
125: } 126: echo ' </head> 127: <body'; 128: echo ($ʟ_tmp = array_filter([$bodyClass ? $bodyClass : null])) ? ' class="' . LR\Filters::escapeHtmlAttr(implode(" ", array_unique($ʟ_tmp))) . '"' : "" /* line 63 */; 129: echo '> 130: '; 131: /* line 64 */ $_tmp = $this->global->uiControl->getComponent("scripts"); 132: if ($_tmp instanceof Nette\Application\UI\Renderable) $_tmp->redrawControl(null, false); 133: $_tmp->render('body'); 134: echo "\n"; 135: $this->renderBlock('bodyStructure', get_defined_vars()) /* line 66 */; 136: echo ' 137: 138: '; 139: $this->renderBlock('scriptsSnippetArea', [], null, 'snippet') /* line 95 */;
56: 57: {ifset block canonical} 58: {include block canonical} 59: {else} 60: <link n:ifset="$canonicalLink" rel="canonical" href="{$canonicalLink}"/> 61: {/ifset} 62: </head> 63: <body n:class="$bodyClass ? $bodyClass"> 64: {control scripts, 'body'} 65: 66: {block bodyStructure} 67: 68: {include '@header.latte'} 69: 70: {include block content}
| $name | 'bodyStructure'
|
|---|---|
| $params |
161: /** 162: * Renders template. 163: * @internal 164: */ 165: public function render(?string $block = null): void 166: { 167: $level = ob_get_level(); 168: try { 169: $this->prepare(); 170: if (!$this->doRender($block)) { 171: $this->main(); 172: } 173: 174: } catch (\Throwable $e) { 175: while (ob_get_level() > $level) {
193: 194: if ($this->referenceType === 'import') { 195: if ($this->parentName) { 196: throw new Latte\RuntimeException('Imported template cannot use {extends} or {layout}, use {import}'); 197: } 198: 199: } elseif ($this->parentName) { // extends 200: ob_start(function () {}); 201: $this->params = $this->main(); 202: ob_end_clean(); 203: $this->createTemplate($this->parentName, $this->params, 'extends')->render($block); 204: 205: } elseif ($block !== null) { // single block rendering 206: $this->renderBlock($block, $this->params); 207:
| $block | null
|
|---|
160: 161: /** 162: * Renders template. 163: * @internal 164: */ 165: public function render(?string $block = null): void 166: { 167: $level = ob_get_level(); 168: try { 169: $this->prepare(); 170: if (!$this->doRender($block)) { 171: $this->main(); 172: } 173: 174: } catch (\Throwable $e) {
| $block | null
|
|---|
92: 93: /** 94: * Renders template to output. 95: * @param object|mixed[] $params 96: */ 97: public function render(string $name, $params = [], ?string $block = null): void 98: { 99: $template = $this->createTemplate($name, $this->processParams($params)); 100: $template->global->coreCaptured = false; 101: ($this->probe)($template); 102: $template->render($block); 103: } 104: 105: 106: /**
| $block | null
|
|---|
36: return $this->latte; 37: } 38: 39: 40: /** 41: * Renders template to output. 42: */ 43: public function render(?string $file = null, array $params = []): void 44: { 45: Nette\Utils\Arrays::toObject($params, $this); 46: $this->latte->render($file ?: $this->file, $this); 47: } 48: 49: 50: /**
| $name | '/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/theme/FrontendModule/templates/BlogPost/detail.latte'
|
|---|---|
| $params |
40: return $this->source; 41: } 42: 43: 44: /** 45: * Sends response to output. 46: */ 47: public function send(Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse): void 48: { 49: if ($this->source instanceof Nette\Application\UI\Template) { 50: $this->source->render(); 51: 52: } else { 53: echo $this->source; 54: }
161: 162: Arrays::invoke($this->onPresenter, $this, $this->presenter); 163: $response = $this->presenter->run(clone $request); 164: 165: if ($response instanceof Responses\ForwardResponse) { 166: $request = $response->getRequest(); 167: goto process; 168: } 169: 170: Arrays::invoke($this->onResponse, $this, $response); 171: $response->send($this->httpRequest, $this->httpResponse); 172: } 173: 174: 175: public function processException(\Throwable $e): void
| $httpRequest | |
|---|---|
| $httpResponse |
80: } 81: 82: 83: /** 84: * Dispatch a HTTP request to a front controller. 85: */ 86: public function run(): void 87: { 88: try { 89: Arrays::invoke($this->onStartup, $this); 90: $this->processRequest($this->createInitialRequest()); 91: Arrays::invoke($this->onShutdown, $this); 92: 93: } catch (\Throwable $e) { 94: Arrays::invoke($this->onError, $this, $e);
| $request |
|---|
13: 14: if ( array_key_exists( 'time_limit', $parameters ) ) { 15: @set_time_limit( $parameters['time_limit'] ); 16: } 17: 18: if ( array_key_exists( 'memory_limit', $parameters ) ) { 19: @ini_set( 'memory_limit', $parameters['memory_limit'] . 'M' ); 20: } 21: 22: $application = $container->getByType(Application::class); 23: $application->run();
Note: the last muted error may have nothing to do with the thrown exception.
.../nette/caching/src/Caching/Storages/FileStorage.php:306
296: } 297: } 298: } 299: 300: 301: /** 302: * Reads cache data from disk. 303: */ 304: protected function readMetaAndLock(string $file, int $lock): ?array 305: { 306: $handle = @fopen($file, 'r+b'); // @ - file may not exist 307: if (!$handle) { 308: return null; 309: } 310:
| PATH | '/usr/local/bin:/usr/bin:/bin'
|
|---|---|
| TEMP | '/tmp'
|
| TMP | '/tmp'
|
| TMPDIR | '/tmp'
|
| PWD | |
| HTTP_ACCEPT | 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
|
| HTTP_ACCEPT_ENCODING | 'br,gzip'
|
| HTTP_ACCEPT_LANGUAGE | 'en-US,en;q=0.5'
|
| HTTP_CONNECTION | 'close'
|
| CONTENT_LENGTH | '0'
|
| HTTP_HOST | 'www.krasa-zdravi.cz'
|
| HTTP_USER_AGENT | 'CCBot/2.0 (https://commoncrawl.org/faq/)'
|
| HTTP_IF_MODIFIED_SINCE | 'Sat, 09 Aug 2025 08:09:18 GMT'
|
| HTTP_X_FORWARDED_PROTO | 'https'
|
| HTTP_X_FORWARDED_PORT | '443'
|
| REDIRECT_HTTPS | 'on'
|
| REDIRECT_UNIQUE_ID | 'aW6JvaIknHeebDXEyx0lCQAAAAI'
|
| REDIRECT_PERL5LIB | '/usr/share/awstats/lib:/usr/share/awstats/plugins'
|
| REDIRECT_STATUS | '200'
|
| HTTPS | 'On'
|
| UNIQUE_ID | 'aW6JvaIknHeebDXEyx0lCQAAAAI'
|
| PERL5LIB | '/usr/share/awstats/lib:/usr/share/awstats/plugins'
|
| SERVER_SIGNATURE | ''
|
| SERVER_SOFTWARE | 'Apache/2.4.6 (CloudLinux) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16'
|
| SERVER_NAME | 'www.krasa-zdravi.cz'
|
| SERVER_ADDR | '127.0.0.1'
|
| SERVER_PORT | 443
|
| REMOTE_ADDR | '18.97.14.86'
|
| DOCUMENT_ROOT | '/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz'
|
| REQUEST_SCHEME | 'http'
|
| CONTEXT_PREFIX | ''
|
| CONTEXT_DOCUMENT_ROOT | '/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz'
|
| SERVER_ADMIN | 'webmaster@krasa-zdravi.cz'
|
| SCRIPT_FILENAME | '/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/index.php'
|
| REMOTE_PORT | '41524'
|
| REDIRECT_URL | '/blog/premyslite-nad-neinvazivnim-omlazenim-pleti-vyzkousejte-metodu-lasocare'
|
| SERVER_PROTOCOL | 'HTTP/1.0'
|
| REQUEST_METHOD | 'GET'
|
| QUERY_STRING | ''
|
| REQUEST_URI | '/blog/premyslite-nad-neinvazivnim-omlazenim-pleti-vyzkousejte-metodu-lasocare'
|
| SCRIPT_NAME | '/index.php'
|
| PHP_SELF | '/index.php'
|
| REQUEST_TIME_FLOAT | 1768851901.106368
|
| REQUEST_TIME | 1768851901
|
| __NF | Nette Session |
|---|
| order | |
|---|---|
| basketItems | null
|
| currency | |
| look | |
| clicked | |
| Nette.Http.UserStorage/ | null
|
| TWISTO_PATH | '/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/libs/twisto/Twisto/'
|
|---|---|
| APP_DIR | '/var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/App'
|
| BCMath support | enabled |
| Directive | Local Value | Master Value |
|---|---|---|
| bcmath.scale | 0 | 0 |
| BZip2 Support | Enabled |
| Stream Wrapper support | compress.bzip2:// |
| Stream Filter support | bzip2.decompress, bzip2.compress |
| BZip2 Version | 1.0.6, 6-Sept-2010 |
| Calendar support | enabled |
| PHP Version | 8.2.24 |
| Directive | Local Value | Master Value |
|---|---|---|
| allow_url_fopen | On | On |
| allow_url_include | Off | Off |
| arg_separator.input | & | & |
| arg_separator.output | & | & |
| auto_append_file | no value | no value |
| auto_globals_jit | On | On |
| auto_prepend_file | no value | no value |
| browscap | no value | no value |
| default_charset | UTF-8 | UTF-8 |
| default_mimetype | text/html | text/html |
| disable_classes | no value | no value |
| disable_functions | no value | no value |
| display_errors | Off | Off |
| display_startup_errors | Off | Off |
| doc_root | no value | no value |
| docref_ext | no value | no value |
| docref_root | no value | no value |
| enable_dl | Off | Off |
| enable_post_data_reading | On | On |
| error_append_string | no value | no value |
| error_log | no value | no value |
| error_log_mode | 0644 | 0644 |
| error_prepend_string | no value | no value |
| error_reporting | 32767 | 22527 |
| expose_php | On | On |
| extension_dir | /opt/alt/php82/usr/lib64/php/modules | /opt/alt/php82/usr/lib64/php/modules |
| fiber.stack_size | no value | no value |
| file_uploads | On | On |
| hard_timeout | 2 | 2 |
| highlight.comment | #998; font-style: italic | #FF8000 |
| highlight.default | #000 | #0000BB |
| highlight.html | #06B | #000000 |
| highlight.keyword | #D24; font-weight: bold | #007700 |
| highlight.string | #080 | #DD0000 |
| html_errors | Off | On |
| ignore_repeated_errors | Off | Off |
| ignore_repeated_source | Off | Off |
| ignore_user_abort | Off | Off |
| implicit_flush | Off | Off |
| include_path | .:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php | .:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php |
| input_encoding | no value | no value |
| internal_encoding | no value | no value |
| log_errors | Off | On |
| mail.add_x_header | Off | Off |
| mail.force_extra_parameters | no value | no value |
| mail.log | no value | no value |
| mail.mixed_lf_and_crlf | Off | Off |
| max_execution_time | 30 | 30 |
| max_file_uploads | 20 | 20 |
| max_input_nesting_level | 64 | 64 |
| max_input_time | 600 | 600 |
| max_input_vars | 1000 | 1000 |
| max_multipart_body_parts | -1 | -1 |
| memory_limit | 128M | 128M |
| open_basedir | /var/www/krasa-zdravi.cz/data:. | no value |
| output_buffering | 4096 | 4096 |
| output_encoding | no value | no value |
| output_handler | no value | no value |
| post_max_size | 128M | 128M |
| precision | 14 | 14 |
| realpath_cache_size | 4096K | 4096K |
| realpath_cache_ttl | 120 | 120 |
| register_argc_argv | Off | Off |
| report_memleaks | On | On |
| report_zend_debug | Off | Off |
| request_order | GP | GP |
| sendmail_from | no value | no value |
| sendmail_path | /usr/sbin/sendmail -t -i -f webmaster@krasa-zdravi.cz | /usr/sbin/sendmail -t -i |
| serialize_precision | -1 | -1 |
| short_open_tag | Off | Off |
| SMTP | localhost | localhost |
| smtp_port | 25 | 25 |
| sys_temp_dir | no value | no value |
| syslog.facility | LOG_USER | LOG_USER |
| syslog.filter | no-ctrl | no-ctrl |
| syslog.ident | php | php |
| unserialize_callback_func | no value | no value |
| upload_max_filesize | 100M | 100M |
| upload_tmp_dir | /var/www/krasa-zdravi.cz/data/mod-tmp | no value |
| user_dir | no value | no value |
| user_ini.cache_ttl | 300 | 300 |
| user_ini.filename | .user.ini | .user.ini |
| variables_order | GPCS | GPCS |
| xmlrpc_error_number | 0 | 0 |
| xmlrpc_errors | Off | Off |
| zend.assertions | 1 | 1 |
| zend.detect_unicode | On | On |
| zend.enable_gc | On | On |
| zend.exception_ignore_args | Off | On |
| zend.exception_string_param_max_len | 15 | 15 |
| zend.multibyte | Off | Off |
| zend.script_encoding | no value | no value |
| zend.signal_check | Off | Off |
| ctype functions | enabled |
| cURL support | enabled |
| cURL Information | 8.9.1 |
| Age | 11 |
| Features | |
| AsynchDNS | Yes |
| CharConv | No |
| Debug | No |
| GSS-Negotiate | No |
| IDN | Yes |
| IPv6 | Yes |
| krb4 | No |
| Largefile | Yes |
| libz | Yes |
| NTLM | Yes |
| NTLMWB | No |
| SPNEGO | Yes |
| SSL | Yes |
| SSPI | No |
| TLS-SRP | Yes |
| HTTP2 | Yes |
| GSSAPI | Yes |
| KERBEROS5 | Yes |
| UNIX_SOCKETS | Yes |
| PSL | No |
| HTTPS_PROXY | Yes |
| MULTI_SSL | No |
| BROTLI | No |
| ALTSVC | Yes |
| HTTP3 | No |
| UNICODE | No |
| ZSTD | No |
| HSTS | Yes |
| GSASL | No |
| Protocols | dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp |
| Host | x86_64-redhat-linux-gnu |
| SSL Version | OpenSSL/1.1.1w |
| ZLib Version | 1.2.7 |
| libSSH Version | libssh2/1.10.0 |
| Directive | Local Value | Master Value |
|---|---|---|
| curl.cainfo | no value | no value |
| date/time support | enabled |
| timelib version | 2022.10 |
| "Olson" Timezone Database Version | 2024.2 |
| Timezone Database | internal |
| Default timezone | Europe/Prague |
| Directive | Local Value | Master Value |
|---|---|---|
| date.default_latitude | 31.7667 | 31.7667 |
| date.default_longitude | 35.2333 | 35.2333 |
| date.sunrise_zenith | 90.833333 | 90.833333 |
| date.sunset_zenith | 90.833333 | 90.833333 |
| date.timezone | Europe/Prague | Europe/Prague |
| DOM/XML | enabled |
| DOM/XML API Version | 20031129 |
| libxml Version | 2.10.2 |
| HTML Support | enabled |
| XPath Support | enabled |
| XPointer Support | enabled |
| Schema Support | enabled |
| RelaxNG Support | enabled |
| EXIF Support | enabled |
| Supported EXIF Version | 0220 |
| Supported filetypes | JPEG, TIFF |
| Multibyte decoding support using mbstring | enabled |
| Extended EXIF tag formats | Canon, Casio, Fujifilm, Nikon, Olympus, Samsung, Panasonic, DJI, Sony, Pentax, Minolta, Sigma, Foveon, Kyocera, Ricoh, AGFA, Epson |
| Directive | Local Value | Master Value |
|---|---|---|
| exif.decode_jis_intel | JIS | JIS |
| exif.decode_jis_motorola | JIS | JIS |
| exif.decode_unicode_intel | UCS-2LE | UCS-2LE |
| exif.decode_unicode_motorola | UCS-2BE | UCS-2BE |
| exif.encode_jis | no value | no value |
| exif.encode_unicode | ISO-8859-15 | ISO-8859-15 |
| fileinfo support | enabled |
| libmagic | 540 |
| Input Validation and Filtering | enabled |
| Directive | Local Value | Master Value |
|---|---|---|
| filter.default | unsafe_raw | unsafe_raw |
| filter.default_flags | no value | no value |
| FTP support | enabled |
| FTPS support | enabled |
| GD Support | enabled |
| GD headers Version | 2.3.3 |
| GD library Version | 2.3.3 |
| FreeType Support | enabled |
| FreeType Linkage | with freetype |
| GIF Read Support | enabled |
| GIF Create Support | enabled |
| JPEG Support | enabled |
| PNG Support | enabled |
| WBMP Support | enabled |
| XPM Support | enabled |
| XBM Support | enabled |
| WebP Support | enabled |
| BMP Support | enabled |
| TGA Read Support | enabled |
| Directive | Local Value | Master Value |
|---|---|---|
| gd.jpeg_ignore_warning | On | On |
| GetText Support | enabled |
| gmp support | enabled |
| GMP version | 6.0.0 |
| hash support | enabled |
| Hashing Engines | md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b crc32c fnv132 fnv1a32 fnv164 fnv1a64 joaat murmur3a murmur3c murmur3f xxh32 xxh64 xxh3 xxh128 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 |
| MHASH support | Enabled |
| MHASH API Version | Emulated Support |
| iconv support | enabled |
| iconv implementation | glibc |
| iconv library version | 2.17 |
| Directive | Local Value | Master Value |
|---|---|---|
| iconv.input_encoding | no value | no value |
| iconv.internal_encoding | no value | no value |
| iconv.output_encoding | no value | no value |
| igbinary support | enabled |
| igbinary version | 3.2.15 |
| igbinary APCu serializer ABI | no |
| igbinary session support | yes |
| Directive | Local Value | Master Value |
|---|---|---|
| igbinary.compact_strings | On | On |
| imagick module | enabled |
|---|---|
| imagick module version | 3.7.0 |
| imagick classes | Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel |
| Imagick compiled with ImageMagick version | ImageMagick 7.1.1-19 Q16-HDRI x86_64 21601 https://imagemagick.org |
| Imagick using ImageMagick library version | ImageMagick 7.1.1-19 Q16-HDRI x86_64 21601 https://imagemagick.org |
| ImageMagick copyright | (C) 1999 ImageMagick Studio LLC |
| ImageMagick release date | 2023-09-30 |
| ImageMagick number of supported formats: | 273 |
| ImageMagick supported formats | 3FR, 3G2, 3GP, A, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, B, BAYER, BAYERA, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MPO, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, R, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YAML, YCbCr, YCbCrA, YUV |
| Directive | Local Value | Master Value |
|---|---|---|
| imagick.allow_zero_dimension_images | 0 | 0 |
| imagick.locale_fix | 0 | 0 |
| imagick.progress_monitor | 0 | 0 |
| imagick.set_single_thread | 1 | 1 |
| imagick.shutdown_sleep_count | 10 | 10 |
| imagick.skip_version_check | 0 | 0 |
| Internationalization support | enabled |
|---|---|
| ICU version | 63.1 |
| ICU Data version | 63.1 |
| ICU TZData version | 2018e |
| ICU Unicode version | 11.0 |
| Directive | Local Value | Master Value |
|---|---|---|
| intl.default_locale | no value | no value |
| intl.error_level | 0 | 0 |
| intl.use_exceptions | Off | Off |
| json support | enabled |
| libXML support | active |
| libXML Compiled Version | 2.10.2 |
| libXML Loaded Version | 21002 |
| libXML streams | enabled |
| Multibyte Support | enabled |
| Multibyte string engine | libmbfl |
| HTTP input encoding translation | disabled |
| libmbfl version | 1.3.2 |
| mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. |
|---|
| Multibyte (japanese) regex support | enabled |
| Multibyte regex (oniguruma) version | 6.8.2 |
| Directive | Local Value | Master Value |
|---|---|---|
| mbstring.detect_order | no value | no value |
| mbstring.encoding_translation | Off | Off |
| mbstring.http_input | no value | no value |
| mbstring.http_output | no value | no value |
| mbstring.http_output_conv_mimetypes | ^(text/|application/xhtml\+xml) | ^(text/|application/xhtml\+xml) |
| mbstring.internal_encoding | no value | no value |
| mbstring.language | neutral | neutral |
| mbstring.regex_retry_limit | 1000000 | 1000000 |
| mbstring.regex_stack_limit | 100000 | 100000 |
| mbstring.strict_detection | Off | Off |
| mbstring.substitute_character | no value | no value |
| memcache support | enabled |
|---|---|
| Version | 8.2 |
| Directive | Local Value | Master Value |
|---|---|---|
| memcache.allow_failover | 1 | 1 |
| memcache.chunk_size | 32768 | 32768 |
| memcache.compress_threshold | 20000 | 20000 |
| memcache.default_port | 11211 | 11211 |
| memcache.hash_function | crc32 | crc32 |
| memcache.hash_strategy | consistent | consistent |
| memcache.lock_timeout | 15 | 15 |
| memcache.max_failover_attempts | 20 | 20 |
| memcache.prefix_host_key | Off | Off |
| memcache.prefix_host_key_remove_subdomain | Off | Off |
| memcache.prefix_host_key_remove_www | On | On |
| memcache.prefix_static_key | no value | no value |
| memcache.protocol | ascii | ascii |
| memcache.redundancy | 1 | 1 |
| memcache.session_prefix_host_key | Off | Off |
| memcache.session_prefix_host_key_remove_subdomain | Off | Off |
| memcache.session_prefix_host_key_remove_www | On | On |
| memcache.session_prefix_static_key | no value | no value |
| memcache.session_redundancy | 2 | 2 |
| memcache.session_save_path | no value | no value |
| memcached support | enabled |
|---|---|
| Version | 3.2.0 |
| libmemcached version | 1.0.18 |
| SASL support | yes |
| Session support | yes |
| igbinary support | yes |
| json support | no |
| msgpack support | no |
| Directive | Local Value | Master Value |
|---|---|---|
| memcached.compression_factor | 1.3 | 1.3 |
| memcached.compression_threshold | 2000 | 2000 |
| memcached.compression_type | fastlz | fastlz |
| memcached.default_binary_protocol | Off | Off |
| memcached.default_connect_timeout | 0 | 0 |
| memcached.default_consistent_hash | Off | Off |
| memcached.serializer | igbinary | igbinary |
| memcached.sess_binary_protocol | On | On |
| memcached.sess_connect_timeout | 0 | 0 |
| memcached.sess_consistent_hash | On | On |
| memcached.sess_consistent_hash_type | ketama | ketama |
| memcached.sess_lock_expire | 0 | 0 |
| memcached.sess_lock_max_wait | not set | not set |
| memcached.sess_lock_retries | 5 | 5 |
| memcached.sess_lock_wait | not set | not set |
| memcached.sess_lock_wait_max | 150 | 150 |
| memcached.sess_lock_wait_min | 150 | 150 |
| memcached.sess_locking | On | On |
| memcached.sess_number_of_replicas | 0 | 0 |
| memcached.sess_persistent | Off | Off |
| memcached.sess_prefix | memc.sess.key. | memc.sess.key. |
| memcached.sess_randomize_replica_read | Off | Off |
| memcached.sess_remove_failed_servers | Off | Off |
| memcached.sess_sasl_password | no value | no value |
| memcached.sess_sasl_username | no value | no value |
| memcached.sess_server_failure_limit | 0 | 0 |
| memcached.store_retry_count | 0 | 0 |
| MysqlI Support | enabled |
|---|---|
| Client API library version | mysqlnd 8.2.24 |
| Active Persistent Links | 0 |
| Inactive Persistent Links | 0 |
| Active Links | 0 |
| Directive | Local Value | Master Value |
|---|---|---|
| mysqli.allow_local_infile | Off | Off |
| mysqli.allow_persistent | On | On |
| mysqli.default_host | no value | no value |
| mysqli.default_port | 3306 | 3306 |
| mysqli.default_pw | no value | no value |
| mysqli.default_socket | /var/lib/mysql/mysql.sock | /var/lib/mysql/mysql.sock |
| mysqli.default_user | no value | no value |
| mysqli.local_infile_directory | no value | no value |
| mysqli.max_links | Unlimited | Unlimited |
| mysqli.max_persistent | Unlimited | Unlimited |
| mysqli.rollback_on_cached_plink | Off | Off |
| mysqlnd | enabled |
|---|---|
| Version | mysqlnd 8.2.24 |
| Compression | supported |
| core SSL | supported |
| extended SSL | supported |
| Command buffer size | 4096 |
| Read buffer size | 32768 |
| Read timeout | 86400 |
| Collecting statistics | Yes |
| Collecting memory statistics | No |
| Tracing | n/a |
| Loaded plugins | mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_caching_sha2_password,auth_plugin_sha256_password |
| API Extensions | mysqli |
| OpenSSL support | enabled |
| OpenSSL Library Version | OpenSSL 1.1.1w 11 Sep 2023 |
| OpenSSL Header Version | OpenSSL 1.1.1w 11 Sep 2023 |
| Openssl default config | /opt/alt/openssl11/etc/pki/tls/openssl.cnf |
| Directive | Local Value | Master Value |
|---|---|---|
| openssl.cafile | no value | no value |
| openssl.capath | no value | no value |
| pcntl support | enabled |
|---|
| PCRE (Perl Compatible Regular Expressions) Support | enabled |
| PCRE Library Version | 10.40 2022-04-14 |
| PCRE Unicode Version | 14.0.0 |
| PCRE JIT Support | enabled |
| PCRE JIT Target | x86 64bit (little endian + unaligned) |
| Directive | Local Value | Master Value |
|---|---|---|
| pcre.backtrack_limit | 1000000 | 1000000 |
| pcre.jit | Off | Off |
| pcre.recursion_limit | 100000 | 100000 |
| PDO support | enabled |
|---|---|
| PDO drivers | mysql, sqlite |
| PDO Driver for MySQL | enabled |
|---|---|
| Client API version | 10.1.48-MariaDB |
| Directive | Local Value | Master Value |
|---|---|---|
| pdo_mysql.default_socket | /var/lib/mysql/mysql.sock | /var/lib/mysql/mysql.sock |
| PDO Driver for SQLite 3.x | enabled |
|---|---|
| SQLite Library | 3.45.2 |
| Phar: PHP Archive support | enabled |
|---|---|
| Phar API version | 1.1.1 |
| Phar-based phar archives | enabled |
| Tar-based phar archives | enabled |
| ZIP-based phar archives | enabled |
| gzip compression | enabled |
| bzip2 compression | enabled |
| OpenSSL support | enabled |
|
Phar based on pear/PHP_Archive, original concept by Davey Shafik. Phar fully realized by Gregory Beaver and Marcus Boerger. Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle. |
| Directive | Local Value | Master Value |
|---|---|---|
| phar.cache_list | no value | no value |
| phar.readonly | On | On |
| phar.require_hash | On | On |
| POSIX support | enabled |
| Version | 8.2.24 |
| Readline Support | enabled |
|---|---|
| Readline library | 6.2 |
| Directive | Local Value | Master Value |
|---|---|---|
| cli.pager | no value | no value |
| cli.prompt | \b \> | \b \> |
| Reflection | enabled |
| Session Support | enabled |
| Registered save handlers | files user memcache memcached |
| Registered serializer handlers | php_serialize php php_binary igbinary |
| Directive | Local Value | Master Value |
|---|---|---|
| session.auto_start | Off | Off |
| session.cache_expire | 180 | 180 |
| session.cache_limiter | nocache | nocache |
| session.cookie_domain | no value | no value |
| session.cookie_httponly | On | Off |
| session.cookie_lifetime | 1209600 | 0 |
| session.cookie_path | / | / |
| session.cookie_samesite | Lax | no value |
| session.cookie_secure | On | Off |
| session.gc_divisor | 1000 | 1000 |
| session.gc_maxlifetime | 1209600 | 1440 |
| session.gc_probability | 1 | 1 |
| session.lazy_write | On | On |
| session.name | PHPSESSID | PHPSESSID |
| session.referer_check | no value | no value |
| session.save_handler | files | files |
| session.save_path | /var/www/krasa-zdravi.cz/data/mod-tmp | /opt/alt/php82/var/lib/php/session |
| session.serialize_handler | php | php |
| session.sid_bits_per_character | 5 | 5 |
| session.sid_length | 26 | 26 |
| session.upload_progress.cleanup | On | On |
| session.upload_progress.enabled | On | On |
| session.upload_progress.freq | 1% | 1% |
| session.upload_progress.min_freq | 1 | 1 |
| session.upload_progress.name | PHP_SESSION_UPLOAD_PROGRESS | PHP_SESSION_UPLOAD_PROGRESS |
| session.upload_progress.prefix | upload_progress_ | upload_progress_ |
| session.use_cookies | On | On |
| session.use_only_cookies | On | On |
| session.use_strict_mode | On | Off |
| session.use_trans_sid | Off | Off |
| shmop support | enabled |
| SimpleXML support | enabled |
| Schema support | enabled |
| Sockets Support | enabled |
| SPL support | enabled |
|---|---|
| Interfaces | OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject |
| Classes | AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException |
| SQLite3 support | enabled |
|---|---|
| SQLite Library | 3.45.2 |
| Directive | Local Value | Master Value |
|---|---|---|
| sqlite3.defensive | On | On |
| sqlite3.extension_dir | no value | no value |
| Dynamic Library Support | enabled |
| Path to sendmail | /usr/sbin/sendmail -t -i -f webmaster@krasa-zdravi.cz |
| Directive | Local Value | Master Value |
|---|---|---|
| assert.active | On | On |
| assert.bail | Off | Off |
| assert.callback | no value | no value |
| assert.exception | On | On |
| assert.warning | On | On |
| auto_detect_line_endings | Off | Off |
| default_socket_timeout | 60 | 60 |
| from | no value | no value |
| session.trans_sid_hosts | no value | no value |
| session.trans_sid_tags | a=href,area=href,frame=src,form= | a=href,area=href,frame=src,form= |
| unserialize_max_depth | 4096 | 4096 |
| url_rewriter.hosts | no value | no value |
| url_rewriter.tags | form= | form= |
| user_agent | no value | no value |
| sysvmsg support | enabled |
| sysvsem support | enabled |
| sysvshm support | enabled |
| Tidy support | enabled |
| libTidy Version | 5.4.0 |
| libTidy Release | 2017/03/01 |
| Directive | Local Value | Master Value |
|---|---|---|
| tidy.clean_output | Off | Off |
| tidy.default_config | no value | no value |
| Tokenizer Support | enabled |
| XML Support | active |
| XML Namespace Support | active |
| libxml2 Version | 2.10.2 |
| XMLReader | enabled |
| XMLRPC extension version | 1.0.0RC3 |
| core library version | xmlrpc-epi v. 0.51 |
| author | Dan Libby |
| homepage | http://xmlrpc-epi.sourceforge.net |
| open sourced by | Epinions.com |
| XMLWriter | enabled |
| XSL | enabled |
| libxslt Version | 1.1.28 |
| libxslt compiled against libxml Version | 2.9.1 |
| EXSLT | enabled |
| libexslt Version | 1.1.28 |
| Opcode Caching | Up and Running |
| Optimization | Enabled |
| SHM Cache | Enabled |
| File Cache | Disabled |
| JIT | Disabled |
| Startup | OK |
| Shared memory model | mmap |
| Cache hits | 318 |
| Cache misses | 518 |
| Used memory | 20277144 |
| Free memory | 113940584 |
| Wasted memory | 0 |
| Interned Strings Used memory | 4119712 |
| Interned Strings Free memory | 4268896 |
| Cached scripts | 518 |
| Cached keys | 977 |
| Max keys | 16229 |
| OOM restarts | 0 |
| Hash keys restarts | 0 |
| Manual restarts | 0 |
| Directive | Local Value | Master Value |
|---|---|---|
| opcache.blacklist_filename | no value | no value |
| opcache.consistency_checks | 0 | 0 |
| opcache.dups_fix | Off | Off |
| opcache.enable | On | On |
| opcache.enable_cli | Off | Off |
| opcache.enable_file_override | Off | Off |
| opcache.error_log | no value | no value |
| opcache.file_cache | no value | no value |
| opcache.file_cache_consistency_checks | On | On |
| opcache.file_cache_only | Off | Off |
| opcache.file_update_protection | 2 | 2 |
| opcache.force_restart_timeout | 180 | 180 |
| opcache.huge_code_pages | Off | Off |
| opcache.interned_strings_buffer | 8 | 8 |
| opcache.jit | tracing | tracing |
| opcache.jit_bisect_limit | 0 | 0 |
| opcache.jit_blacklist_root_trace | 16 | 16 |
| opcache.jit_blacklist_side_trace | 8 | 8 |
| opcache.jit_buffer_size | 0 | 0 |
| opcache.jit_debug | 0 | 0 |
| opcache.jit_hot_func | 127 | 127 |
| opcache.jit_hot_loop | 64 | 64 |
| opcache.jit_hot_return | 8 | 8 |
| opcache.jit_hot_side_exit | 8 | 8 |
| opcache.jit_max_exit_counters | 8192 | 8192 |
| opcache.jit_max_loop_unrolls | 8 | 8 |
| opcache.jit_max_polymorphic_calls | 2 | 2 |
| opcache.jit_max_recursive_calls | 2 | 2 |
| opcache.jit_max_recursive_returns | 2 | 2 |
| opcache.jit_max_root_traces | 1024 | 1024 |
| opcache.jit_max_side_traces | 128 | 128 |
| opcache.jit_prof_threshold | 0.005 | 0.005 |
| opcache.lockfile_path | /tmp | /tmp |
| opcache.log_verbosity_level | 1 | 1 |
| opcache.max_accelerated_files | 10000 | 10000 |
| opcache.max_file_size | 0 | 0 |
| opcache.max_wasted_percentage | 5 | 5 |
| opcache.memory_consumption | 128 | 128 |
| opcache.opt_debug_level | 0 | 0 |
| opcache.optimization_level | 0x7FFEBFFF | 0x7FFEBFFF |
| opcache.preferred_memory_model | no value | no value |
| opcache.preload | no value | no value |
| opcache.preload_user | no value | no value |
| opcache.protect_memory | Off | Off |
| opcache.record_warnings | Off | Off |
| opcache.restrict_api | no value | no value |
| opcache.revalidate_freq | 2 | 2 |
| opcache.revalidate_path | Off | Off |
| opcache.save_comments | On | On |
| opcache.use_cwd | On | On |
| opcache.validate_permission | Off | Off |
| opcache.validate_root | Off | Off |
| opcache.validate_timestamps | On | On |
| Zip | enabled |
| Zip version | 1.21.1 |
| Libzip version | 1.10.1 |
| BZIP2 compression | Yes |
| XZ compression | Yes |
| ZSTD compression | Yes |
| AES-128 encryption | Yes |
| AES-192 encryption | Yes |
| AES-256 encryption | Yes |
| ZLib Support | enabled |
|---|---|
| Stream Wrapper | compress.zlib:// |
| Stream Filter | zlib.inflate, zlib.deflate |
| Compiled Version | 1.2.7 |
| Linked Version | 1.2.7 |
| Directive | Local Value | Master Value |
|---|---|---|
| zlib.output_compression | Off | Off |
| zlib.output_compression_level | -1 | -1 |
| zlib.output_handler | no value | no value |
| Module Name |
|---|
| litespeed |
array (1)0 => array (7)| 'name' => 'default output handler' | 'type' => 0 | 'flags' => 20592 | 'level' => 0 | 'chunk_size' => 4096 | 'buffer_size' => 8192 | 'buffer_used' => 3100
| Host | 'www.krasa-zdravi.cz'
|
|---|---|
| X-Forwarded-Proto | 'https'
|
| X-Forwarded-Port | '443'
|
| Connection | 'close'
|
| User-Agent | 'CCBot/2.0 (https://commoncrawl.org/faq/)'
|
| Accept | 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
|
| Accept-Language | 'en-US,en;q=0.5'
|
| If-Modified-Since | 'Sat, 09 Aug 2025 08:09:18 GMT'
|
| Accept-Encoding | 'br,gzip'
|
| Content-Length | '0'
|
empty
empty
empty
| Set-Cookie | 'tracy-session=aa12cf9451; expires=Wed, 20 Jan 2027 01:45:01 GMT; Max-Age=31557600; path=/; HttpOnly'
|
|---|---|
| X-Powered-By | 'Nette Framework 3'
|
| Content-Type | 'text/html; charset=utf-8'
|
| X-Frame-Options | 'SAMEORIGIN'
|
| Set-Cookie | '_nss=1; path=/; secure; HttpOnly; SameSite=Strict'
|
| Set-Cookie | 'PHPSESSID=934id6bvia5usc70193u0t127a; expires=Mon, 02 Feb 2026 19:45:01 GMT; Max-Age=1209600; path=/; secure; HttpOnly; SameSite=Lax'
|
| Expires | 'Thu, 19 Nov 1981 08:52:00 GMT'
|
| Cache-Control | 'no-store, no-cache, must-revalidate'
|
| Pragma | 'no-cache'
|
| Vary | 'X-Requested-With'
|
Headers have been sent, output started at .../latte/Components-Scripts-default.latte--1f0c48260d.php:13 source
3: use Latte\Runtime as LR; 4: 5: /** source: /var/www/krasa-zdravi.cz/data/www/krasa-zdravi.cz/App/FrontendModule/Components/Scripts/default.latte */ 6: final class Template1f0c48260d extends Latte\Runtime\Template 7: { 8: 9: public function main(): array 10: { 11: extract($this->params); 12: if ($type === 'header') /* line 2 */ { 13: echo ' <script> 14: window.dataLayer = window.dataLayer || []; 15: (function(){ 16: window.dataLayer.push( arguments ); 17: })(\'consent\', \'default\', { \'personalization_storage\': \'denied\', \'ad_storage\': \'denied\', \'analytics_storage\': \'denied\', \'wait_for_update\': 2000 } );