XF 1.5 Template Errors: PAGE_CONTAINER

tnAnGel

Проверенные
Сообщения
1,231
Реакции
906
Баллы
3,465
Последний XF 1.5
php 7.1.9

upload_2017-9-11_0-10-51.png

Код:
Template Errors: PAGE_CONTAINER
A non-numeric value encountered in /home/admin/public_html/internal_data/templates/S.29,L.2,PAGE_CONTAINER.php, line 538
A non-numeric value encountered in /home/admin/public_html/internal_data/templates/S.29,L.2,PAGE_CONTAINER.php, line 538

Строка 538
PHP:
$userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));

Что творил: перешел с php 7.0 на последнюю.
 

Вложения

  • S.29,L.2,PAGE_CONTAINER.php.zip
    86.8 KB · Просмотры: 1
Последнее редактирование модератором:
Так ТС и сам в состоянии решить, как мне кажется... Настройки стиля некорректны. Их надо или отменить и сделать по новой, или попробовать зайти в них и просто пересохранить без отмены изменений, ну или обновить стиль до крайней версии просто. :)
 
Ладно, пока человек решает более глобальные проблемы, так как шаблон сохранить не удаётся, напишу тут, что нужно сделать.
Открываем шаблон - page_container_js_head.
Находим.
Код:
<xen:set var="$headerTabHeight_outer">{xen:calc '@headerTabHeight + @navTabs.border-top-width + @navTabs.border-bottom-width + @navTabs.padding-top + @navTabs.padding-bottom)'}</xen:set>
<xen:set var="$uix_fixedNavigationHeight_outer">{xen:calc '@uix_fixedNavigationHeight + @uix_fixedNavigation_style.border-top-width + @uix_fixedNavigation_style.border-bottom-width + @uix_fixedNavigation_style.padding-top + @uix_fixedNavigation_style.padding-bottom)'}</xen:set>

<xen:set var="$uix_tabLinksHeight_outer">{xen:calc '@uix_tabLinksHeight + @uix_tabLinks_style.padding-top + @uix_tabLinks_style.padding-bottom + @uix_tabLinks_style.border-bottom-width + @uix_tabLinks_style.border-top-width)'}</xen:set>
<xen:set var="$uix_tabLinksHeightSticky_outer">{xen:calc '@uix_tabLinksHeightSticky + @uix_tabLinksSticky_style.padding-top + @uix_tabLinksSticky_style.padding-bottom + @uix_tabLinksSticky_style.border-bottom-width + @uix_tabLinksSticky_style.border-top-width)'}</xen:set>

<xen:set var="$userBar_headerTabHeight_outer">{xen:calc '@uix_userBarHeight + @uix_userBar_style.border-top-width + @uix_userBar_style.border-bottom-width + @uix_userBar_style.padding-top + @uix_userBar_style.padding-bottom)'}</xen:set>
<xen:set var="$userBar_uix_fixedNavigationHeight_outer">{xen:calc '@uix_fixedUserBarHeight + @uix_fixedUserBar_style.border-top-width + @uix_fixedUserBar_style.border-bottom-width + @uix_fixedUserBar_style.padding-top + @uix_fixedUserBar_style.padding-bottom)'}</xen:set>

И заменяем.
Код:
<xen:set var="$headerTabHeight_outer">{xen:calc 'intval(@headerTabHeight) + intval(@navTabs.border-top-width) + intval(@navTabs.border-bottom-width) + intval(@navTabs.padding-top) + intval(@navTabs.padding-bottom)'}</xen:set>
<xen:set var="$uix_fixedNavigationHeight_outer">{xen:calc 'intval(@uix_fixedNavigationHeight) + intval(@uix_fixedNavigation_style.border-top-width) + intval(@uix_fixedNavigation_style.border-bottom-width) + intval(@uix_fixedNavigation_style.padding-top) + intval(@uix_fixedNavigation_style.padding-bottom)'}</xen:set>

<xen:set var="$uix_tabLinksHeight_outer">{xen:calc 'intval(@uix_tabLinksHeight) + intval(@uix_tabLinks_style.padding-top) + intval(@uix_tabLinks_style.padding-bottom) + intval(@uix_tabLinks_style.border-bottom-width) + intval(@uix_tabLinks_style.border-top-width)'}</xen:set>
<xen:set var="$uix_tabLinksHeightSticky_outer">{xen:calc 'intval(@uix_tabLinksHeightSticky) + intval(@uix_tabLinksSticky_style.padding-top) + intval(@uix_tabLinksSticky_style.padding-bottom) + intval(@uix_tabLinksSticky_style.border-bottom-width) + intval(@uix_tabLinksSticky_style.border-top-width)'}</xen:set>

<xen:set var="$userBar_headerTabHeight_outer">{xen:calc 'intval(@uix_userBarHeight) + intval(@uix_userBar_style.border-top-width) + intval(@uix_userBar_style.border-bottom-width) + intval(@uix_userBar_style.padding-top) + intval(@uix_userBar_style.padding-bottom)'}</xen:set>
<xen:set var="$userBar_uix_fixedNavigationHeight_outer">{xen:calc 'intval(@uix_fixedUserBarHeight) + intval(@uix_fixedUserBar_style.border-top-width) + intval(@uix_fixedUserBar_style.border-bottom-width) + intval(@uix_fixedUserBar_style.padding-top) + intval(@uix_fixedUserBar_style.padding-bottom)'}</xen:set>
 
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу