Server error log
ErrorException: Template error: Cannot call method getRepository on a non-object (NULL) src/XF/Template/Templater.php:989
Generated by: tester2 02.12.2019. at 03:00
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/nginx/dom...', 989, Array)
#1 src/XF/Template/Templater.php(989): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s1/public/sv_contentratings_macros.php(148): XF\Template\Templater->method(NULL, 'getRepository', Array)
#3 src/XF/Template/Templater.php(706): XF\Template\Templater->{closure}(Object(SV\BookmarkEssentials\XF\Template\Templater), Array, Array)
#4 src/XF/Template/Templater.php(784): XF\Template\Templater->callMacro('sv_contentratin...', 'rating_bar', Array, Array)
#5 src/addons/SV/ContentRatings/XF/Template/Templater.php(192): XF\Template\Templater->renderMacro('public:sv_conte...', 'rating_bar', Array)
#6 [internal function]: SV\ContentRatings\XF\Template\Templater->fnReactions(Object(SV\BookmarkEssentials\XF\Template\Templater), false, Object(Siropu\Chat\Entity\Message), 'chat/message/re...')
#7 src/XF/Template/Templater.php(941): call_user_func_array(Array, Array)
#8 src/XF/Template/Templater.php(911): XF\Template\Templater->func('reactions', Array, false)
#9 src/addons/Siropu/Chat/Service/Room/ActionLogger.php(33): XF\Template\Templater->fn('reactions', Array)
#10 src/addons/Siropu/Chat/Entity/Message.php(601): Siropu\Chat\Service\Room\ActionLogger->logMessageAction(Object(Siropu\Chat\Entity\Message))
#11 src/XF/Mvc/Entity/Entity.php(1208): Siropu\Chat\Entity\Message->_postSave()
#12 src/XF/Reaction/AbstractHandler.php(107): XF\Mvc\Entity\Entity->save()
#13 src/XF/Repository/Reaction.php(274): XF\Reaction\AbstractHandler->updateContentReactions(Object(Siropu\Chat\Entity\Message), Array, Array)
#14 src/addons/SV/ContentRatings/XF/Repository/Reaction.php(495): XF\Repository\Reaction->rebuildContentReactionCache('siropu_chat_roo...', 13, false, true)
#15 src/XF/Entity/ReactionContent.php(198): SV\ContentRatings\XF\Repository\Reaction->rebuildContentReactionCache('siropu_chat_roo...', 13, false)
#16 src/XF/Entity/ReactionContent.php(140): XF\Entity\ReactionContent->rebuildContentReactionCache()
#17 src/addons/SV/ContentRatings/XF/Entity/ReactionContent.php(180): XF\Entity\ReactionContent->_postSave()
#18 src/XF/Mvc/Entity/Entity.php(1208): SV\ContentRatings\XF\Entity\ReactionContent->_postSave()
#19 src/XF/Repository/Reaction.php(189): XF\Mvc\Entity\Entity->save()
#20 src/addons/SV/ContentRatings/XF/Repository/Reaction.php(863): XF\Repository\Reaction->insertReaction(1, 'siropu_chat_roo...', 13, Object(SV\BookmarkEssentials\XF\Entity\User), true, false)
#21 src/XF/Repository/Reaction.php(142): SV\ContentRatings\XF\Repository\Reaction->insertReaction(1, 'siropu_chat_roo...', 13, Object(SV\BookmarkEssentials\XF\Entity\User), true, false)
#22 src/XF/ControllerPlugin/Reaction.php(65): XF\Repository\Reaction->reactToContent(1, 'siropu_chat_roo...', 13, Object(SV\BookmarkEssentials\XF\Entity\User), true)
#23 src/XF/ControllerPlugin/Reaction.php(19): XF\ControllerPlugin\Reaction->actionToggleReaction(Object(Siropu\Chat\Entity\Message), 'chat/message/re...', 'chat/message')
#24 src/XF/ControllerPlugin/Reaction.php(12): XF\ControllerPlugin\Reaction->actionReact(Object(Siropu\Chat\Entity\Message), 'chat/message', 'chat/message/re...', 'chat/message/re...')
#25 src/addons/Siropu/Chat/Pub/Controller/Message.php(241): XF\ControllerPlugin\Reaction->actionReactSimple(Object(Siropu\Chat\Entity\Message), 'chat/message')
#26 src/XF/Mvc/Dispatcher.php(350): Siropu\Chat\Pub\Controller\Message->actionReact(Object(XF\Mvc\ParameterBag))
#27 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('Siropu\\Chat:Mes...', 'React', Object(XF\Mvc\RouteMatch), Object(Siropu\Chat\Pub\Controller\Message), NULL)
#28 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Siropu\Chat\Pub\Controller\Message), NULL)
#29 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#30 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#31 src/XF.php(391): XF\App->run()
#32 index.php(20): XF::runApp('XF\\Pub\\App')
#33 {main}
Request state
array(4) {
["url"] => string(22) "/chat/message/13/react"
["referrer"] => string(62) "https://www.pijanitvor.com/chat/message/13/react?reaction_id=1"
["_GET"] => array(1) {
["/chat/message/13/react"] => string(0) ""
}
["_POST"] => array(2) {
["reaction_id"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}