【发布时间】:2020-07-24 15:43:03
【问题描述】:
我尝试找到与我类似的问题,但似乎没有运气。我有 php7.1 的 cs-cart 多供应商测试,正常主题工作正常,但是当我安装新主题站点时工作,直到我登录管理面板。这意味着在我登录管理面板网站后进入白屏。我试着想,我在我的主题文件夹中看到 index.tpl 文件总是变空。所以要让网站再次工作,我必须再次替换 index.tpl 文件。这是 index.tpl 文件的代码。你能告诉我谁在做网站的文件中有错误吗?谢谢!
{capture name="page_title"} {hook name="index:title"} {if $page_title} {$page_title} {其他} {如果 $language_direction == "rtl"} {foreach from=$breadcrumbs|@array_reverse item=i name="bkt"} {if !$smarty.foreach.bkt.last}{if !$smarty.foreach.bkt.last && !$smarty.foreach.bkt.first} :: {/if}{$i.title|strip_tags}{/if} {/foreach} {别的} {foreach from=$breadcrumbs item=i name="bkt"} {if !$smarty.foreach.bkt.first}{$i.title|strip_tags}{if !$smarty.foreach.bkt.last} :: {/if}{/if} {/foreach} {/如果} {if !$skip_page_title && $location_data.title}{if $breadcrumbs|count > 1} - {/if}{$location_data.title}{/if} {/if} {/hook} {/capture} {$smarty.capture.page_title|strip|trim nofilter} {include file="meta.tpl"} {hook name="index:links"} {/hook} {include file="common/styles.tpl" include_dropdown=true} {if "DEVELOPMENT"|defined && $smarty.const.DEVELOPMENT == true} window.jsErrors = []; window.onerror = function(message, source, lineno, colno, error) { var verboseMessage = 消息; 如果(来源){ verboseMessage = source + '@' + lineno + ':' + colno + "\n\n" + message; }
console.error(verboseMessage); if (error && error.stack) { console.log(error.stack); } document.write('<pre data-ca-debug="1" style="border: 2px solid red; margin: 2px;">' + verboseMessage + "\n\n" + (error && error.stack ? error.stack : '') + '</pre>' ); }; </script> <!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.9/es5-shim.min.js"></script><![endif]-->{/if} {hook name="index:head_scripts"}{/hook}
{hook name="index:body"} {如果 $runtime.customization_mode.design} {include file="common/toolbar.tpl" title=("on_site_template_editing") href="customization.disable_mode?type=design"} {/如果} {如果 $runtime.customization_mode.live_editor} {include file="common/toolbar.tpl" title=("on_site_live_editing") href="customization.disable_mode?type=live_editor"} {/如果} {if "THEMES_PANEL"|定义 && !$runtime.customization_mode.live_editor} {include file="demo_theme_selector.tpl"} {/如果}
<div class="ty-tygh {if $runtime.customization_mode.theme_editor}te-mode{/if} {if$runtime.customization_mode.live_editor || $runtime.customization_mode.design || $smarty.const.THEMES_PANEL}ty-top-panel-padding{/if}" id="tygh_container">
{include file="common/loading_box.tpl"} {include file="common/notification.tpl"} <div class="ty-helper-container" id="tygh_main_container"> {hook name="index:content"} {hook name="index:et_content"}{/hook} {/hook} <!--tygh_main_container--></div> {hook name="index:footer"}{/hook} <!--tygh_container--></div> {include file="common/scripts.tpl"} {if $runtime.customization_mode.design} {include file="backend:common/template_editor.tpl"} {/if} {if $runtime.customization_mode.theme_editor} {include file="backend:common/theme_editor.tpl"} {/if} {/hook} </body>
【问题讨论】:
标签: cs-cart