Ошибка в файле TPL или php версия неверна - PullRequest
0 голосов
/ 12 апреля 2020

Я пытаюсь найти похожую проблему, как у меня, но, похоже, не повезло. У меня есть мультивендор cs-cart с php7 .1, протестированный с нормальной темой, который работает нормально, но когда я устанавливаю новый сайт, работающий до тех пор, пока я не войду в административную панель. Таким образом, это означает, что после того, как мой логин на панели администратора сайта переходит в белый экран. Я пытаюсь понять, и я вижу в моей папке темы файл index.tpl всегда становится пустым. Поэтому, чтобы сайт снова заработал, я должен снова заменить файл index.tpl. Вот код файла index.tpl. Можете ли вы сказать мне, если есть ошибка в файле, который делает сайт до go вниз? Спасибо!

{capture name = "page_title"} {hook name = "index: title"} {if $ page_title} {$ page_title} {else} {if $ 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} :: {/ifif] карманный $ i.title|strip_tags enj каркул/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} {if! $ skip_page_title && $ location_data.title} {if $ breadcrumbs | count> 1} - {/ifФОvendom$$ationation_data.title‹]/if} {/ if} {/ hook} {/ capture} {$ smarty.capture.page_title | strip | trim nofilter} {include file = "meta.tpl"} {имя хука = "index: links"} {/ hook} {include file = "common / styles.tpl" include_dropdown = true} {если "DEVELOPMENT" | определено && $ 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; }

<code>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 : '')
    + '
'); };

{/ if} {имя хука = "index: head_scripts"} {/ hook}

{имя хука = "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" | определены &&! $ 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>

1 Ответ

0 голосов
/ 13 апреля 2020

Пожалуйста, проверьте вашу лицензию на тему, которую вы используете

...