SmartyException {#2073 #message: "Invalid compiled template for 'module:leobootstrapmenu/views/templates/hook/megamenu.tpl'" #code: 0 #file: "/data/wwwroot/djy_prod/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php" #line: 116 : { { ›if (empty($unifunc) || !function_exists($unifunc)) {
›throw new SmartyException("Invalid compiled template for '{$_template->template_resource}'");
›}
} { ›$_template->compile_check = $compile_check;
›$cached->getRenderedTemplateCode($_template);
›if ($_template->smarty->debugging) {
: { : SmartyCustomTemplate {#2079 …} } } { ›} else {
›$_template->smarty->ext->_updateCache->updateCache($this, $_template, $no_output_filter);
›}
: { : Smarty_Template_Cached {#1985 …} : SmartyCustomTemplate {#2079 …} : false } } { ›}
›$this->cached->render($this, $no_output_filter);
›} else {
: { : SmartyCustomTemplate {#2079 …} : false } } { ›}
›$result = $template->render(false, $function);
›$template->_cleanUp();
: { : false : 0 } } { ›{
›$result = $this->_execute($template, $cache_id, $compile_id, $parent, 0);
›return $result === null ? ob_get_clean() : $result;
: { : SmartyCustomTemplate {#1826 …} : null : "layouts/layout-full-width.tpl" : null : 0 } } { ›if ($this->smarty->caching) {
›$tpl = parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
›if (property_exists($this, 'cached')) {
: { : null : null : null : null : { false true false } } } { › ›return $template->fetch();
›}
} { ›//return $this->display(__FILE__, $tpl, $this->getCacheId($group_id.'_'.$form_id.'_'.$this->name));
›return $this->fetch($tpl, $this->getCacheId($group_id.'_'.$form_id.'_'.$this->name));
›}
: { : "module:leobootstrapmenu/views/templates/hook/megamenu.tpl" : "7_1379649100036635_leobootstrapmenu||20250505|1|1|1|1|1|1|1|1" } } { › ›$assign['content_megamenu'] = $module->processHookCallBack($assign['formAtts']['megamenu_group'], $form_id[1]);
› : { : "7" : "1379649100036635" } } { › ›$assign = $this->prepareFontContent($assign, $this->module);
› : { : array:2 [ …2] : Leobootstrapmenu {#1902 …} } } { ›}
›$widget_parse_content = $widget_instance->fontContent($widget['params'], $content, $this->mobile, $this->editMode);
›if ($this->mobile) {
: { : array:10 [ …10] : "" : false : false } } { ›$resolve($this->getData(self::$CACHE_WIDGET_PREFIX, $widget['params'], function () use ($widget, $content, $widget_instance) {
›return $this->doParseWidget($widget, $content, $widget_instance);
›}));
: { : array:2 [ …2] : "" : ApMegamenu {#1907 …} } } { ›if (!$cache_id) {
›$res = $func();
›if ($this->mobile) {
} { ›return $this->doParseWidget($widget, $content, $widget_instance);
›}));
›} catch (Exception $e) {
: { : "WIDGET_" : array:8 [ …8] : Closure {#1956 …} } } { ›}
›}
›);
: { Closure {#1888 …} Closure {#1875 …} Closure {#1870 …} } } { ›$resolver = $canceller = null;
›$this->call($cb);
›}
: { : null } } { ›}
›});
›}
: { : null } } { ›$widget_tasks[] = function () use ($widget) {
›return $this->parseWidget($widget);
›};
: { : array:2 [ …2] } } { › ›$promise = \call_user_func($task);
›assert($promise instanceof PromiseInterface);
} { ›return new Promise(function ($resolve) use ($widget_tasks) {
›parallel($widget_tasks)->then(function ($widget_results) use ($resolve) {
›$resolve($widget_results);
: { : array:1 [ …1] } } { ›}
›}
›);
: { Closure {#1888 …} Closure {#1875 …} Closure {#1870 …} } } { ›$resolver = $canceller = null;
›$this->call($cb);
›}
: { : null } } { ›});
›});
›}
: { : null } } { ›return new Promise(function ($resolve) use ($column) {
›$resolve($this->parseWidgets($column['widgets'])->then(function ($parsedWidgets) use ($column) {
›if ($this->mobile) {
: { : array:3 [ …3] } } { ›}
›}
›);
: { Closure {#1888 …} Closure {#1875 …} Closure {#1870 …} } } { ›$resolver = $canceller = null;
›$this->call($cb);
›}
: { : null } } { ›}));
›});
›}
: { : null } } { ›$column_tasks[] = function () use ($column) {
›return $this->parseColumn($column);
›};
: { : array:2 [ …2] } } { › ›$promise = \call_user_func($task);
›assert($promise instanceof PromiseInterface);
} { ›}
›parallel($column_tasks)->then(function ($columnResults) use ($row, &$row_res) {
›$columns = $columnResults;
: { : array:2 [ …2] } } { ›if (empty($cache_data)) {
›$cache_data = $func();
›//非移动端且返回结果为数组时,为widget缓存,压缩HTML
} { ›try {
›return resolve($onFulfilled($this->value));
›} catch (\Throwable $exception) {
: { null } } { ›return $cache_data;
›});
›return $cached_res;
: { : Closure {#1903 …} } } { ›return $row_res;
›}));
›});
: { : "ROW_" : array:41 [ …41] : Closure {#1863 …} } } { ›}
›}
›);
: { Closure {#1888 …} Closure {#1875 …} Closure {#1870 …} } } { ›$resolver = $canceller = null;
›$this->call($cb);
›}
: { : null } } { ›}));
›});
›}
: { : null } } { ›$row_tasks[] = function () use ($row) {
›return $this->parseColumns($row);
›};
: { : array:2 [ …2] } } { › ›$promise = \call_user_func($task);
›assert($promise instanceof PromiseInterface);
} { › ›parallel($row_tasks)->then(
›function ($rowResults) {
: { : array:1 [ …1] } } { › ›$ap_content=$front_parse->parse();
› } { ›if(in_array($hookName,$this->front_hooks)){
›return $this->processHook($hookName,$arguments);
›}
: { : "displayNavFullWidth" : array:4 [ …4] } } { ›{
›return $module->{$method}($params);
›}
: { : "hookdisplayNavFullWidth" : array:4 [ …4] } } { ›if (is_callable(array($module, 'hook' . $hookName))) {
›return Hook::coreCallHook($module, 'hook' . $hookName, $hookArgs);
›}
: { : Ft_PageBuilder {#55 …} : "hookdisplayNavFullWidth" : array:4 [ …4] } } { ›}
›$display = Hook::callHookOn($moduleInstance, $hook_name, $hook_args);
›if(preg_match('/^display*/',$hook_name) && is_array($output) && isset($hook_args['mobile']) && $hook_args['mobile']){
: { : Ft_PageBuilder {#55 …} : "displayNavFullWidth" : array:4 [ …4] } } { › ›return Hook::exec($params['h'], $hook_params, $id_module);
›}
: { : "displayNavFullWidth" : array:4 [ …4] : null } } { › ›return call_user_func_array($item, $args);
›}
: { : array:1 [ …1] : SmartyCustomTemplate {#1846 …} } } { › ›<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>'displayNavFullWidth'),$_smarty_tpl ) );?>
› : { : "smartyHook" : array:2 [ …2] } } { ›$tpl->source = $this->sources[ $block->tplIndex ];
›$block->callBlock($tpl);
›$tpl->source = array_pop($this->sourceStack);
: { : SmartyCustomTemplate {#1839 …} } } { ›if ($block->callsChild || !isset($block->child) || ($block->child->hide && !isset($block->child->child))) {
›$this->callBlock($block, $tpl);
›} else {
: { : Block_8095109416801ca53615866_40085512 {#1842 …} : SmartyCustomTemplate {#1839 …} } } { ›}
›$this->process($tpl, $block);
›}
: { : SmartyCustomTemplate {#1839 …} : Block_8095109416801ca53615866_40085512 {#1842 …} } } { ›<?php
›$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_20282842906801ca536a99e9_54394850', 'header_top');
›?>
: { : SmartyCustomTemplate {#1846 …} : "Block_20282842906801ca536a99e9_54394850" : "header_top" } } { ›}
›$unifunc($_template);
›foreach ($_template->endRenderCallbacks as $callback) {
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$this->getRenderedTemplateCode($_template);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›}
›$this->compiled->render($this);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$tpl->render();
›}
} { › ›<?php $_smarty_tpl->_subTemplateRender('file:_partials/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
›?>
: { : "file:_partials/header.tpl" : null : "layouts/layout-full-width.tpl" : 0 : 3600 : [] : 0 : false } } { ›$tpl->source = $this->sources[ $block->tplIndex ];
›$block->callBlock($tpl);
›$tpl->source = array_pop($this->sourceStack);
: { : SmartyCustomTemplate {#1839 …} } } { ›if ($block->callsChild || !isset($block->child) || ($block->child->hide && !isset($block->child->child))) {
›$this->callBlock($block, $tpl);
›} else {
: { : Block_8095109416801ca53615866_40085512 {#1842 …} : SmartyCustomTemplate {#1839 …} } } { ›}
›$this->process($tpl, $block);
›}
: { : SmartyCustomTemplate {#1839 …} : Block_8095109416801ca53615866_40085512 {#1842 …} } } { ›<?php
›$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_8095109416801ca53615866_40085512', 'header');
›?>
: { : SmartyCustomTemplate {#1839 …} : "Block_8095109416801ca53615866_40085512" : "header" } } { ›}
›$unifunc($_template);
›foreach ($_template->endRenderCallbacks as $callback) {
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$this->getRenderedTemplateCode($_template);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›}
›$this->compiled->render($this);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$tpl->render();
›}
} { ›$uid,
›$func
›);
: { : "catalog/listing/product-list.tpl" : null : "layouts/layout-full-width.tpl" : 0 : 3600 : [] : 2 : false : null : null } } { › ›<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, 'layouts/layout-both-columns.tpl');
›}
: { : SmartyCustomTemplate {#1833 …} : "layouts/layout-both-columns.tpl" } } { ›}
›$unifunc($_template);
›foreach ($_template->endRenderCallbacks as $callback) {
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$this->getRenderedTemplateCode($_template);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›}
›$this->compiled->render($this);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$tpl->render();
›}
} { ›$uid,
›$func
›);
: { : "catalog/listing/product-list.tpl" : null : "layouts/layout-full-width.tpl" : 0 : 3600 : [] : 2 : false : null : null } } { › ›<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, $_smarty_tpl->tpl_vars['layout']->value);
›}
: { : SmartyCustomTemplate {#1829 …} : "layouts/layout-full-width.tpl" } } { ›}
›$unifunc($_template);
›foreach ($_template->endRenderCallbacks as $callback) {
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$this->getRenderedTemplateCode($_template);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›}
›$this->compiled->render($this);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$tpl->render();
›}
} { ›$uid,
›$func
›);
: { : "catalog/listing/product-list.tpl" : null : "layouts/layout-full-width.tpl" : 0 : 3600 : [] : 2 : false : null : null } } { › ›<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, "page.tpl");
›}
: { : SmartyCustomTemplate {#1828 …} : "page.tpl" } } { ›}
›$unifunc($_template);
›foreach ($_template->endRenderCallbacks as $callback) {
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$this->getRenderedTemplateCode($_template);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›}
›$this->compiled->render($this);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$tpl->render();
›}
} { ›$uid,
›$func
›);
: { : "catalog/listing/product-list.tpl" : null : "layouts/layout-full-width.tpl" : 0 : 3600 : [] : 2 : false : null : null } } { › ›<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, 'catalog/listing/product-list.tpl');
›}
: { : SmartyCustomTemplate {#1826 …} : "catalog/listing/product-list.tpl" } } { ›}
›$unifunc($_template);
›foreach ($_template->endRenderCallbacks as $callback) {
: { : SmartyCustomTemplate {#1826 …} } } { ›} else {
›$this->getRenderedTemplateCode($_template);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›}
›$this->compiled->render($this);
›}
: { : SmartyCustomTemplate {#1826 …} } } { ›}
›$result = $template->render(false, $function);
›$template->_cleanUp();
: { : false : 0 } } { ›{
›$result = $this->_execute($template, $cache_id, $compile_id, $parent, 0);
›return $result === null ? ob_get_clean() : $result;
: { : SmartyCustomTemplate {#1826 …} : null : "layouts/layout-full-width.tpl" : null : 0 } } { › ›return parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
›}
: { : "catalog/listing/all-product.tpl" : null : "layouts/layout-full-width.tpl" : null : { false true false } } } { ›} else {
›$html = $this->context->smarty->fetch($content, null, $this->getLayout());
›}
: { : "catalog/listing/all-product.tpl" : null : "layouts/layout-full-width.tpl" } } { › ›$this->smartyOutputContent($this->template);
› : { : "catalog/listing/all-product.tpl" } } { ›} else {
›$this->display();
›}
} { ›// Running controller
›$controller->run();
› } { ›require dirname(__FILE__).'/config/maintenance.php';
›Dispatcher::getInstance()->dispatch();
› } } }
"直接跳过了吗"
Array