首页 > 解决方案 > tpl文件错误或php版本错误

问题描述

我试图找到像我一样的类似问题,但似乎没有运气。我有 php7.1 的 cs-cart 多供应商测试,正常主题工作正常,但是当我安装新主题站点时工作,直到我登录管理面板。这意味着在我登录管理面板网站后进入白屏。我试着想,我在我的主题文件夹中看到 index.tpl 文件总是变空。所以要让网站再次工作,我必须再次替换 index.tpl 文件。这是 index.tpl 文件的代码。你能告诉我谁在做网站的文件中有错误吗?谢谢!

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 = message; if (source) { verboseMessage = source + '@' + lineno + ':' + colno + "\n\n" + message; } 错误){ var verboseMessage = 消息;if (source) { verboseMessage = source + '@' + lineno + ':' + colno + "\n\n" + message; } 错误){ var verboseMessage = 消息;if (source) { 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"} {if $runtime.customization_mode.design} {include file="common/toolbar.tpl" title= ("on_site_template_editing") href="customization.disable_mode?type=design"} { /if} {if $runtime.customization_mode.live_editor} {include file="common/toolbar.tpl" title= ("on_site_live_editing") href="customization.disable_mode?type=live_editor"} {/if} {if "THEMES_PANEL "|defined && !$runtime.customization_mode.live_editor} {include file="demo_theme_selector.tpl"} {/if}

    <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

解决方案


请检查您使用的主题的许可证


推荐阅读