XF 2.2 Template Error lightbox

Статус
В этой теме нельзя размещать новые ответы.
Версия XenForo
2.2

liner

Проверенные
Сообщения
1,010
Решения
2
Реакции
395
Баллы
8,195
Не работают аттачи после обновления, некорректно отображаются, то в новом окне, то ниже footer.

1598382383819.png

Код:
#0 internal_data/code_cache/templates/l2/s1/public/lightbox_macros.php(87): XF\Template\Templater->handleTemplateError(2, 'Illegal string ...', '/home/xenforo/w...', 87, Array)
#1 src/XF/Template/Templater.php(798): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array, NULL)
#2 internal_data/code_cache/templates/l2/s1/public/bb_code_tag_attach.php(80): XF\Template\Templater->callMacro('lightbox_macros', 'single_image', Array, Array)
#3 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array, NULL)
#4 src/XF/BbCode/Renderer/Html.php(503): XF\Template\Templater->renderTemplate('bb_code_tag_att...', Array)
#5 src/XF/BbCode/Renderer/Html.php(498): XF\BbCode\Renderer\Html->getRenderedAttachment(Object(XF\Entity\Attachment), Array)
#6 [internal function]: XF\BbCode\Renderer\Html->renderTagAttach(Array, Array, Array, Array, Object(XenConcept\FaviconForLink\XF\BbCode\Renderer\Html))
#7 src/XF/BbCode/Renderer/Html.php(308): call_user_func(Array, Array, Array, Array, Array, Object(XenConcept\FaviconForLink\XF\BbCode\Renderer\Html))
#8 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#9 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#10 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#11 src/XF/SubContainer/BbCode.php(220): XF\BbCode\Traverser->render('[ATTACH type="f...', Object(XF\BbCode\Parser), Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#12 src/XF/Template/Templater.php(2312): XF\SubContainer\BbCode->render('[ATTACH type="f...', 'html', 'post', Object(TC\UsefulPost\XF\Entity\Post), Array)
#13 [internal function]: XF\Template\Templater->fnBbCode(Object(SV\ConversationEssentials\XF\Template\Templater), false, '[ATTACH type="f...', 'post', Object(TC\UsefulPost\XF\Entity\Post))
#14 src/XF/Template/Templater.php(1102): call_user_func_array(Array, Array)
#15 internal_data/code_cache/templates/l2/s1/public/post_macros.php(206): XF\Template\Templater->func('bb_code', Array, false)
#16 src/XF/Template/Templater.php(798): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array, NULL)
#17 internal_data/code_cache/templates/l2/s1/public/thread_view.php(1087): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#18 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#19 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#20 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#21 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#22 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#23 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#24 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#25 src/XF/App.php(2298): XF\Mvc\Dispatcher->run()
#26 src/XF.php(459): XF\App->run()
#27 index.php(20): XF::runApp('XF\\Pub\\App')
#28 {main}
Содержимое запроса
array(4) {
  ["url"] => string(45) "/threads/izbrannye-karantinki.115491/page-234"
  ["referrer"] => string(65) "/threads/izbrannye-karantinki.115491/page-233"
  ["_GET"] => array(1) {
    ["q"] => string(45) "/threads/izbrannye-karantinki.115491/page-234"
  }
  ["_POST"] => array(0) {
  }
}

Коллеги, подскажете, куда смотреть и что делать?
 
содержимое шаблона
Код:
<xf:macro name="setup" arg-canViewAttachments="!">
    <xf:if is="$canViewAttachments">
        <xf:css src="lightbox.less" />
        <xf:js prod="xf/lightbox-compiled.js" dev="vendor/fancybox/jquery.fancybox.js, xf/lightbox.js" />

        <xf:if is="!page_param('hasLb')">
            <script class="js-extraPhrases" type="application/json">
            {
                "lightbox_close": "{{ phrase('lightbox_close')|escape('js') }}",
                "lightbox_next": "{{ phrase('lightbox_next')|escape('js') }}",
                "lightbox_previous": "{{ phrase('lightbox_previous')|escape('js') }}",
                "lightbox_error": "{{ phrase('lightbox_error')|escape('js') }}",
                "lightbox_start_slideshow": "{{ phrase('lightbox_start_slideshow')|escape('js') }}",
                "lightbox_stop_slideshow": "{{ phrase('lightbox_stop_slideshow')|escape('js') }}",
                "lightbox_full_screen": "{{ phrase('lightbox_full_screen')|escape('js') }}",
                "lightbox_thumbnails": "{{ phrase('lightbox_thumbnails')|escape('js') }}",
                "lightbox_download": "{{ phrase('lightbox_download')|escape('js') }}",
                "lightbox_share": "{{ phrase('lightbox_share')|escape('js') }}",
                "lightbox_zoom": "{{ phrase('lightbox_zoom')|escape('js') }}",
                "lightbox_new_window": "{{ phrase('lightbox_new_window')|escape('js') }}",
                "lightbox_toggle_sidebar": "{{ phrase('lightbox_toggle_sidebar')|escape('js') }}"
            }
            </script>
        </xf:if>
        <xf:page option="hasLb" value="{{ true }}" />
    </xf:if>
</xf:macro>

<xf:macro name="single_image"
    arg-canViewAttachments="!"
    arg-src="!"
    arg-dataUrl=""
    arg-containerZoom="1"
    arg-alt=""
    arg-title=""
    arg-sidebarHref=""
    arg-captionExtraHtml=""
    arg-styleAttr=""
    arg-alignClass=""
    arg-width=""
    arg-height="">

    <xf:macro name="setup" arg-canViewAttachments="{$canViewAttachments}" />

    <div class="bbImageWrapper {$alignClass} js-lbImage" title="{$alt|for_attr}"
        data-src="{$src}" data-lb-sidebar-href="{$sidebarHref}" data-lb-caption-extra-html="{$captionExtraHtml|for_attr}" data-single-image="1">
        <img src="{$src}"
            data-url="{$dataUrl}"
            class="bbImage"
            data-zoom-target="1"
            style="{$styleAttr}"
            alt="{$alt|for_attr}"
            title="{$title|for_attr}"
            width="{$width}" height="{$height}" loading="lazy" />
    </div>
</xf:macro>
 
Статус
В этой теме нельзя размещать новые ответы.
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу