Chat 2 by Siropu

Chat 2 by Siropu [Paid] 2.3.4

No permission to buy (€29.99)
Siropu updated Chat 2 by Siropu with a new update entry:

Bug Fixes

Fixed an issue where you cannot disable rooms.
Fixed some tab CSS issues when rooms are disabled but private conversation are not.
Prevent unnecessary queries when rooms are disabled.

Note: Now, if you want to use it a shoutbox (No private conversations and multiple rooms), you must do the following:

1. Check admin option "Enable rooms" .
2. Select a room for "Default joined rooms" admin option.
3. Set user group permission "Join rooms" to 1.
4. Set user group permission "Browse...

Read the rest of this update entry...
 
I'm on 2.1.3 and would like to upgrade to 2.1.5. This is my first time updating the chat add-on and I can't find any instructions or guides on how to do it properly. Not here or on your dedicated site. Let me know.

Do I Uninstall, copy the new files onto my forum site and then Install? Disable, copy, then Install? Not sure what the correct sequence is.
 
Hello
Using latest Addon release with XF 2.1.6 (latest also)

When using Ratings option, i am facing those errors in Admin :

  • ErrorException: Template error: Cannot call method getVisitorReactionCount on a non-object (string)
  • src/XF/Template/Templater.php:984

  • Generated by: kankan
  • Jan 3, 2020 at 11:36 AM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/e-smith/f...', 984, Array)
#1 src/XF/Template/Templater.php(984): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l5/s19/public/sv_contentratings_macros.php(151): XF\Template\Templater->method('', 'getVisitorReact...', Array)
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, Array)
#4 src/XF/Template/Templater.php(779): 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(ThemeHouse\UIX\XF\Template\Templater), false, Object(Siropu\Chat\Entity\Message), 'chat/message/re...')
#7 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#8 src/XF/Template/Templater.php(906): 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...', 18617, false, true)
#15 src/XF/Entity/ReactionContent.php(198): SV\ContentRatings\XF\Repository\Reaction->rebuildContentReactionCache('siropu_chat_roo...', 18617, 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...', 18617, Object(MJ\SupportTicket\XF\Entity\User), true, false)
#21 src/XF/Repository/Reaction.php(142): SV\ContentRatings\XF\Repository\Reaction->insertReaction(1, 'siropu_chat_roo...', 18617, Object(MJ\SupportTicket\XF\Entity\User), true, false)
#22 src/XF/ControllerPlugin/Reaction.php(65): XF\Repository\Reaction->reactToContent(1, 'siropu_chat_roo...', 18617, Object(MJ\SupportTicket\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(261): 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(46) "/forums/chat/message/18617/react?reaction_id=1"
["referrer"] => string(80) "https://www.forum-des-portables-asus.fr/forums/resources/linux-sur-clef-usb.254/"
["_GET"] => array(1) {
["reaction_id"] => string(1) "1"
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(41) "/forums/resources/linux-sur-clef-usb.254/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}

And those one :

  • ErrorException: Template error: Cannot call method getRepository on a non-object (NULL)
  • src/XF/Template/Templater.php:984

  • Generated by: kankan
  • Jan 3, 2020 at 11:36 AM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/e-smith/f...', 984, Array)
#1 src/XF/Template/Templater.php(984): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l5/s19/public/sv_contentratings_macros.php(148): XF\Template\Templater->method(NULL, 'getRepository', Array)
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, Array)
#4 src/XF/Template/Templater.php(779): 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(ThemeHouse\UIX\XF\Template\Templater), false, Object(Siropu\Chat\Entity\Message), 'chat/message/re...')
#7 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#8 src/XF/Template/Templater.php(906): 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...', 18617, false, true)
#15 src/XF/Entity/ReactionContent.php(198): SV\ContentRatings\XF\Repository\Reaction->rebuildContentReactionCache('siropu_chat_roo...', 18617, 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...', 18617, Object(MJ\SupportTicket\XF\Entity\User), true, false)
#21 src/XF/Repository/Reaction.php(142): SV\ContentRatings\XF\Repository\Reaction->insertReaction(1, 'siropu_chat_roo...', 18617, Object(MJ\SupportTicket\XF\Entity\User), true, false)
#22 src/XF/ControllerPlugin/Reaction.php(65): XF\Repository\Reaction->reactToContent(1, 'siropu_chat_roo...', 18617, Object(MJ\SupportTicket\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(261): 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(46) "/forums/chat/message/18617/react?reaction_id=1"
["referrer"] => string(80) "https://www.forum-des-portables-asus.fr/forums/resources/linux-sur-clef-usb.254/"
["_GET"] => array(1) {
["reaction_id"] => string(1) "1"
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(41) "/forums/resources/linux-sur-clef-usb.254/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}

Thanks for your support.
 
Hi again! :)

We updated to the latest version. Haven't noticed any issues except, for some reason, the Upload Image button in chat has disappeared for anyone who is not a moderator or admin. I've tried setting all permissions for every single user group to have unlimited uploads but to no avail.
 
Hello @Siropu
Facing this issue and error :

  • ErrorException: [E_NOTICE] Trying to get property 'node_id' of non-object
  • src/addons/Siropu/Chat/Listener.php:82

  • Generated by: kankan
  • Jan 6, 2020 at 9:28 PM

Stack trace

#0 src/addons/Siropu/Chat/Listener.php(82): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/e-smith/f...', 82, Array)
#1 [internal function]: Siropu\Chat\Listener::postEntityPostSave(Object(XFMG\XF\Entity\Post))
#2 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#3 src/XF.php(718): XF\Extension->fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#4 src/XF/Mvc/Entity/Entity.php(1214): XF::fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#5 src/XF/Reaction/AbstractHandler.php(107): XF\Mvc\Entity\Entity->save()
#6 src/XF/Repository/Reaction.php(274): XF\Reaction\AbstractHandler->updateContentReactions(Object(XFMG\XF\Entity\Post), Array, Array)
#7 src/addons/SV/ContentRatings/XF/Repository/Reaction.php(495): XF\Repository\Reaction->rebuildContentReactionCache('post', 72034, false, false)
#8 src/addons/SV/ContentRatings/Job/ContentRatingData.php(93): SV\ContentRatings\XF\Repository\Reaction->rebuildContentReactionCache('post', 72034, false, false)
#9 src/XF/Job/Manager.php(253): SV\ContentRatings\Job\ContentRatingData->run(G)
#10 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#11 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#12 src/XF/Admin/Controller/Tools.php(139): XF\Job\Manager->runQueue(true, 8)
#13 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#14 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#15 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#16 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#18 src/XF.php(391): XF\App->run()
#19 admin.php(13): XF::runApp('XF\\Admin\\App')
#20 {main}

Request state

array(4) {
["url"] => string(31) "/forums/admin.php?tools/run-job"
["referrer"] => string(70) "https://www.forum-des-portables-asus.fr/forums/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(56) "https://www.forum-des-portables-asus.fr/forums/admin.php"
["_xfToken"] => string(8) "********"
["only_ids"] => string(0) ""
}
}

Running latest version of addon and XF.

Thank you for your support.
 
Often? It is related to new post forum notifications and it looks like Thread entity is not present for some reason. I will make some changes for the next release.
 
We're placing a custom link for the chat in the p-nav-opposite area, do you know how we'd be able to get an alert bubble with the number of unread private chats? We have a link setup, just need the item count. Any way of passing that from the siropu_chat template to PAGE_CONTAINER somehow?
 
The variable is available only on the siropu_chat template. I can add a global variable but it will add an extra query
 
The variable is available only on the siropu_chat template. I can add a global variable but it will add an extra query
I suppose an option would be nice. Just to clarify though, does the default chat tab have an unread indicator of private chats or just unread messages in rooms?
 
@Siropu did anything change with this new version? I upgraded from 2.1.3 to 2.1.5 and now the chat isn't showing up wither on the forum_list page or on the separate chat page. The chat page is still there, it just doesn't have anything on it. It asked me to merge a template after the upgrade but other than that, nothing else was touched.

Chat | DressedWell 2020-01-13 04-27-03.webp
 
Top Bottom