Chat 2 by Siropu

Chat 2 by Siropu [Paid] 2.5.2

No permission to buy (€29.99)
I just noticed this error in the log

Code:
ErrorException: [E_NOTICE] Trying to get property 'title' of non-object src/addons/Siropu/Chat/Listener.php:185
Generated by: RobinHood Mar 1, 2018 at 12:14 PM
Stack trace
#0 src/addons/Siropu/Chat/Listener.php(185): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home//...', 185, Array)
#1 [internal function]: Siropu\Chat\Listener::XFMGMediaItemEntityPostSave(Object(XFMG\Entity\MediaItem))
#2 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#3 src/XF.php(561): XF\Extension->fire('entity_post_sav...', Array, 'XFMG\\Entity\\Med...')
#4 src/XF/Mvc/Entity/Entity.php(1151): XF::fire('entity_post_sav...', Array, 'XFMG\\Entity\\Med...')
#5 src/addons/XFMG/Job/MediaItem.php(30): XF\Mvc\Entity\Entity->save()
#6 src/XF/Job/AbstractRebuildJob.php(47): XFMG\Job\MediaItem->rebuildById(663)
#7 src/XF/Job/Manager.php(241): XF\Job\AbstractRebuildJob->run(7.9999988079071)
#8 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9999988079071)
#9 src/XF/Job/Manager.php(103): XF\Job\Manager->runJobEntry(Array, 7.9999988079071)
#10 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#11 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', 'html', Object(XF\Mvc\ParameterBag), 'tools', Object(XF\Admin\Controller\Tools), NULL)
#13 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#15 src/XF.php(328): XF\App->run()
#16 admin.php(13): XF::runApp('XF\\Admin\\App')
#17 {main}
Request state
array(4) {
  ["url"] => string(24) "/admin.php?tools/run-job"
  ["referrer"] => string(48) "https://www..com/admin.php?tools/run-job"
  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(58) "https://www..com/admin.php?tools/rebuild&success=1"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(2) "96"
  }
}

Not sure what triggered it. I have been trying to install XFMG though this morning and doing lots of rebuilds.
 
It is related to XFMG bot notifications. Haven't seen this issue before but I've made some changes to prevent this in the future.
 
I can't seem to find anyone having a similar issue, but some of my mobile-exclusive users are complaining that they can't use the chat properly because pressing enter either doesn't post the message or simply enters a new line. I can't seem to reproduce this, and it seems to be somewhat random for them. I'm not a big mobile user, so I haven't noticed this, but it only affects the chat for some reason, and I'm unsure of steps to take to fix this (clearing cache/cookies worked for one person, the other still has the problem). Any help would be greatly appreciated!

Edit -- Apparently downloading a different mobile browser has solved the issue. Not entirely sure what would cause it in the first place, but glad it's resolved now.
 
Last edited:
That's how AJAX chat works. Like I said before, I'm planing to implement node.js if possible.
I am not saying that requesting new posts every second (or however often you have it configured) is bad. In fact it's the only way you can obviously achieve a live chat, unless you use websockets.
The point I am trying to make is that the request the chat makes will result in a 100+KB response every single second, even when there are no new messages (for the record that is more bandwidth than watching a 480p youtube video) . Why does it request all messages in the chat every single time, rather than only requesting new messages?
 
Im getting these errors aside from being unable to merge template due to syntax error : Line 281: Syntax error
Server error log
  • ErrorException: Fatal Error: Class 'Mobile_Detect' not found
  • src/addons/Siropu/Chat/Criteria/Device.php:23
  • Generated by: Unknown account
  • Mar 3, 2018 at 7:36 PM
Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}

Server error log
  • ErrorException: Fatal Error: Call to undefined method XF\Entity\User::canViewSiropuChat()
  • src/addons/Siropu/Chat/Widget/Chat.php:36
  • Generated by: Unknown account
  • Mar 3, 2018 at 6:17 PM
Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}
 
Im unable to merger the template Siropu_Chat after the upgrade. Its giving me a syntax error : Line 281
 
When you click to view an outdated/modified template, there should be a "revert" button in the top right side.
 
Click the template name. If the option doesn't show up when it loads, go to the templates section and search for siropu_chat then click on it to edit it. There should be the button.
 
Back
Top Bottom