XF 2.2 Ошибка - [E_WARNING] Division by zero

Версия XenForo
2.2.10 Patch 1

VGK

Проверенные
Сообщения
137
Реакции
41
Баллы
100
Код:
Трассировка стека
#0 internal_data/code_cache/templates/l3/s10/public/post_macros.php(644): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Div...', '/var/www/www-ro...', 644, Array)
#1 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, NULL)
#2 internal_data/code_cache/templates/l3/s10/public/post_macros.php(61): XF\Template\Templater->callMacro('post_macros', 'post_user_conte...', Array, Array)
#3 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_content', Array, Array, Object(XF\Template\ExtensionSet))
#5 internal_data/code_cache/templates/l3/s10/public/post_macros.php(97): XF\Template\Templater->renderExtension('user_content', Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('content', Array, Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l3/s10/public/post_macros.php(126): XF\Template\Templater->renderExtension('content', Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell_inner', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l3/s10/public/post_macros.php(140): XF\Template\Templater->renderExtension('main_cell_inner', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l3/s10/public/post_macros.php(152): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#17 internal_data/code_cache/templates/l3/s10/public/post_macros.php(192): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#19 internal_data/code_cache/templates/l3/s10/public/thread_view.php(987): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#20 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#21 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#22 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#23 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#24 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#27 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#28 src/XF.php(524): XF\App->run()
#29 index.php(20): XF::runApp('XF\\Pub\\App')
#30 {main}

Код:
array(4) {
  ["url"] => string(13) "/threads/434/"
  ["referrer"] => string(26) "https://vgk.lol/forums/73/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Возникает при входе в любой форум или тему, в админке выдает это и еще такую же.

  • Template error: [E_USER_WARNING] Cannot call method getCriteriaForTemplate on a non-object (NULL)

Может кто подсказать решение?
 
Последнее редактирование модератором:
Код:
Трассировка стека
#0 internal_data/code_cache/templates/l3/s10/public/post_macros.php(644): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Div...', '/var/www/www-ro...', 644, Array)
#1 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, NULL)
#2 internal_data/code_cache/templates/l3/s10/public/post_macros.php(61): XF\Template\Templater->callMacro('post_macros', 'post_user_conte...', Array, Array)
#3 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_content', Array, Array, Object(XF\Template\ExtensionSet))
#5 internal_data/code_cache/templates/l3/s10/public/post_macros.php(97): XF\Template\Templater->renderExtension('user_content', Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('content', Array, Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l3/s10/public/post_macros.php(126): XF\Template\Templater->renderExtension('content', Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell_inner', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l3/s10/public/post_macros.php(140): XF\Template\Templater->renderExtension('main_cell_inner', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l3/s10/public/post_macros.php(152): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#17 internal_data/code_cache/templates/l3/s10/public/post_macros.php(192): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#19 internal_data/code_cache/templates/l3/s10/public/thread_view.php(987): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#20 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LiveContent\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#21 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#22 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#23 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#24 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#27 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#28 src/XF.php(524): XF\App->run()
#29 index.php(20): XF::runApp('XF\\Pub\\App')
#30 {main}

Код:
array(4) {
  ["url"] => string(13) "/threads/434/"
  ["referrer"] => string(26) "https://vgk.lol/forums/73/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Возникает при входе в любой форум или тему, в админке выдает это и еще такую же.

  • Template error: [E_USER_WARNING] Cannot call method getCriteriaForTemplate on a non-object (NULL)

Может кто подсказать решение?
Отсюда вопрос, что у Вас изменено и откуда там ноль?
 
Уже не первый раз вижу в логе ссылки на SV\LiveContent. Может версия плагина не совместима с версией движка/стиля?
Я так же вижу данное дополнение, но на оффе не встречалась такая ошибка, а вариант с чем-то не совместимым, вполне возможен, но мы можем только гадать, так как не заем, что на форуме в целом и в какой из моментов, может и в настройках где закралась ошибка.
 
Они вот всегда идут 2 ошибки, друг за другом.
Первая.
  • ErrorException: Template error: [E_USER_WARNING] Cannot call method getCriteriaForTemplate on a non-object (NULL)
  • src/XF/Template/Templater.php:1176
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/var/www/www-ro...', 1176, Array)
#1 src/XF/Template/Templater.php(1176): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l3/s10/public/post_macros.php(533): XF\Template\Templater->method(NULL, 'getCriteriaForT...', Array)
#3 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, NULL)
#4 internal_data/code_cache/templates/l3/s10/public/post_macros.php(59): XF\Template\Templater->callMacro('post_macros', 'post_user_conte...', Array, Array)
#5 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_content', Array, Array, Object(XF\Template\ExtensionSet))
#7 internal_data/code_cache/templates/l3/s10/public/post_macros.php(93): XF\Template\Templater->renderExtension('user_content', Array, Object(XF\Template\ExtensionSet))
#8 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('content', Array, Array, Object(XF\Template\ExtensionSet))
#10 internal_data/code_cache/templates/l3/s10/public/post_macros.php(122): XF\Template\Templater->renderExtension('content', Array, Object(XF\Template\ExtensionSet))
#11 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell_inner', Array, Array, Object(XF\Template\ExtensionSet))
#13 internal_data/code_cache/templates/l3/s10/public/post_macros.php(136): XF\Template\Templater->renderExtension('main_cell_inner', Array, Object(XF\Template\ExtensionSet))
#14 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#16 internal_data/code_cache/templates/l3/s10/public/post_macros.php(148): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#17 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#19 internal_data/code_cache/templates/l3/s10/public/post_macros.php(178): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#20 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#21 internal_data/code_cache/templates/l3/s10/public/thread_view.php(968): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#22 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#23 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#24 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#25 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#26 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#27 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#28 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#29 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#30 src/XF.php(524): XF\App->run()
#31 index.php(20): XF::runApp('XF\\Pub\\App')
array(4) {
["url"] => string(13) "/threads/451/"
["referrer"] => string(16) " "
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
Вторая
  • ErrorException: Template error: [E_WARNING] Division by zero
  • internal_data/code_cache/templates/l3/s10/public/post_macros.php:541

#0 internal_data/code_cache/templates/l3/s10/public/post_macros.php(541): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Div...', '/var/www/www-ro...', 541, Array)
#1 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, NULL)
#2 internal_data/code_cache/templates/l3/s10/public/post_macros.php(59): XF\Template\Templater->callMacro('post_macros', 'post_user_conte...', Array, Array)
#3 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_content', Array, Array, Object(XF\Template\ExtensionSet))
#5 internal_data/code_cache/templates/l3/s10/public/post_macros.php(93): XF\Template\Templater->renderExtension('user_content', Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('content', Array, Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l3/s10/public/post_macros.php(122): XF\Template\Templater->renderExtension('content', Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell_inner', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l3/s10/public/post_macros.php(136): XF\Template\Templater->renderExtension('main_cell_inner', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l3/s10/public/post_macros.php(148): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#17 internal_data/code_cache/templates/l3/s10/public/post_macros.php(178): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#19 internal_data/code_cache/templates/l3/s10/public/thread_view.php(968): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#20 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(TC\CustomUserStyle\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#21 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#22 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#23 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#24 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#27 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#28 src/XF.php(524): XF\App->run()
#29 index.php(20): XF::runApp('XF\\Pub\\App')
#30 {main}

array(4) {
["url"] => string(13) "/threads/451/"
["referrer"] => string(16) " "
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Смотреть по месту нужно. Что у Вас в компиле шаблона на месте, куда оно ругается? Желательно захватить дополнительно по 10 строк сверху и снизу.
 
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу