Chat 2 by Siropu

Chat 2 by Siropu [Paid] 2.5.2

No permission to buy (€29.99)
@Siropu Please check. I've been using it for years, but ever since I upgraded my board to 2.3 and Chats to 2.4.2, I've been getting errors with chat reactions.
View attachment 305814

Initially, the emoji reactions appear correctly, but after some time, they change to "[object HTMLDivElement]" in any chat with reactions.
Exactly same issue on my forum, after upgrading XF to 2.3, and upgrading to Chat 2.4.2
 
@Siropu

It's actually even more broken now.

Two different reactions, two different broken outputs.
 

Attachments

  • 24.07.27-16:59:56.webp
    24.07.27-16:59:56.webp
    3.8 KB · Views: 9
  • 24.07.27-16:59:37.webp
    24.07.27-16:59:37.webp
    35 KB · Views: 9
Hello, the addon would have an automatic function to post a link to each topic posted on the site.
If there is one, I couldn't find it.
 
I’m seeing server errors on the latest version

Server error log
  • TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given
  • src/addons/Siropu/Chat/Repository/User.php:152
  • Generated by: xxxxx
  • Jul 27, 2024 at 7:42 PM

Stack trace​

#0 src/addons/Siropu/Chat/Repository/User.php(152): in_array(7620, '')
#1 src/addons/Siropu/Chat/Pub/View/Chat.php(40): Siropu\Chat\Repository\User->getUsersData(Array, 1)
#2 src/XF/Mvc/Renderer/AbstractRenderer.php(92): Siropu\Chat\Pub\View\Chat->renderJson()
#3 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('Siropu\\Chat:Cha...', '', Array)
#4 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Json->renderView('Siropu\\Chat:Cha...', '', Array)
#5 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#6 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#8 src/XF/App.php(2777): XF\Mvc\Dispatcher->run()
#9 src/XF.php(798): XF\App->run()
#10 index.php(23): XF::runApp('XF\\Pub\\App')
#11 {main}

Request state​

array(4) {
["url"] => string(22) "/index.php?chat/update"
["referrer"] => string(29) "https://sitename.co.uk/chat/"
["_GET"] => array(1) {
["chat/update"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
Getting this error in the back end after updating and rebuilding the patch:

Code:
Stack trace
#0 src/addons/Siropu/Chat/Repository/User.php(152): in_array(1, '')
#1 src/addons/Siropu/Chat/Pub/View/Chat.php(40): Siropu\Chat\Repository\User->getUsersData(Array, 1)
#2 src/XF/Mvc/Renderer/AbstractRenderer.php(92): Siropu\Chat\Pub\View\Chat->renderJson()
#3 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('Siropu\\Chat:Cha...', '', Array)
#4 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Json->renderView('Siropu\\Chat:Cha...', '', Array)
#5 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#6 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#8 src/XF/App.php(2777): XF\Mvc\Dispatcher->run()
#9 src/XF.php(798): XF\App->run()
#10 index.php(23): XF::runApp('XF\\Pub\\App')
#11 {main}

Code:
Request state
array(4) {
  ["url"] => string(375) "/swodyssey/index.php?chat/update&users%5B1%5D=&channel=room&room_id=1&last_id%5B1%5D=78732&conv_id=17&conv_only=0&conv_items=&conv_last_active=1719774024&conv_last_update=1719774024&user_last_update=1722103427&is_chat_page=1&hide_tabs=0&_xfRequestUri=%2Fswodyssey%2Findex.php%3Fchat%2F&_xfWithData=1&_xfToken=1722101666%2Cfc7bbf950442351a898b26a6223059da&_xfResponseType=json"
  ["referrer"] => string(49) "https://ambientvibe.com/swodyssey/index.php?chat/"
  ["_GET"] => array(17) {
    ["chat/update"] => string(0) ""
    ["users"] => array(1) {
      [1] => string(0) ""
    }
    ["channel"] => string(4) "room"
    ["room_id"] => string(1) "1"
    ["last_id"] => array(1) {
      [1] => string(5) "78732"
    }
    ["conv_id"] => string(2) "17"
    ["conv_only"] => string(1) "0"
    ["conv_items"] => string(0) ""
    ["conv_last_active"] => string(10) "1719774024"
    ["conv_last_update"] => string(10) "1719774024"
    ["user_last_update"] => string(10) "1722103427"
    ["is_chat_page"] => string(1) "1"
    ["hide_tabs"] => string(1) "0"
    ["_xfRequestUri"] => string(26) "/swodyssey/index.php?chat/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1722101666,fc7bbf950442351a898b26a6223059da"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
Hi,

There is also this issue, posting so others are aware it's been reported (I have a ticket open with the dev)

  • TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given
  • src/addons/Siropu/Chat/Repository/User.php:152

Stack trace
Code:
#0 src/addons/Siropu/Chat/Repository/User.php(152): in_array(144671, '85694,4,36177,7...')
#1 src/addons/Siropu/Chat/Pub/View/Chat.php(40): Siropu\Chat\Repository\User->getUsersData(Array, 1)
#2 src/XF/Mvc/Renderer/AbstractRenderer.php(92): Siropu\Chat\Pub\View\Chat->renderJson()
#3 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('Siropu\\Chat:Cha...', '', Array)
#4 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Json->renderView('Siropu\\Chat:Cha...', '', Array)
#5 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#6 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#8 src/XF/App.php(2777): XF\Mvc\Dispatcher->run()
#9 src/XF.php(798): XF\App->run()
#10 index.php(23): XF::runApp('XF\\Pub\\App')
#11 {main}

Request state:
Code:
array(4) {
  ["url"] => string(22) "/index.php?chat/update"
  ["referrer"] => string(26) "https://www"
  ["_GET"] => array(1) {
    ["chat/update"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
Same here:
Server error log
TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given src/addons/Siropu/Chat/Repository/User.php:152
Generated by: Jenny Jul 29, 2024 at 9:51 AM
Stack trace
#0 src/addons/Siropu/Chat/Repository/User.php(152): in_array(13991, '')
#1 src/addons/Siropu/Chat/Pub/View/Chat.php(40): Siropu\Chat\Repository\User->getUsersData(Array, 1)
#2 src/XF/Mvc/Renderer/AbstractRenderer.php(92): Siropu\Chat\Pub\View\Chat->renderJson()
#3 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('Siropu\\Chat:Cha...', '', Array)
#4 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Json->renderView('Siropu\\Chat:Cha...', '', Array)
#5 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#6 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#8 src/XF/App.php(2777): XF\Mvc\Dispatcher->run()
#9 src/XF.php(798): XF\App->run()
#10 index.php(23): XF::runApp('XF\\Pub\\App')
#11 {main}
Request state
array(4) {
["url"] => string(385) "/index.php?chat/update&users%5B1%5D=&channel=room&room_id=1&last_id%5B1%5D=390085&conv_id=0&conv_only=0&conv_items=&conv_last_active=1722234118&conv_last_update=1722234118&user_last_update=1722238648&is_chat_page=0&hide_tabs=0&_xfRequestUri=%2Fforums%2Ffilters-bioloog-en-pompen.38%2Fpost-thread&_xfWithData=1&_xfToken=1722237160%2C08ee10b9e95751faacf4c035f76caad2&_xfResponseType=json"
["referrer"] => string(68) "https://aquaforum.nl/forums/filters-bioloog-en-pompen.38/post-thread"
["_GET"] => array(17) {
["chat/update"] => string(0) ""
["users"] => array(1) {
[1] => string(0) ""
}
["channel"] => string(4) "room"
["room_id"] => string(1) "1"
["last_id"] => array(1) {
[1] => string(6) "390085"
}
["conv_id"] => string(1) "0"
["conv_only"] => string(1) "0"
["conv_items"] => string(0) ""
["conv_last_active"] => string(10) "1722234118"
["conv_last_update"] => string(10) "1722234118"
["user_last_update"] => string(10) "1722238648"
["is_chat_page"] => string(1) "0"
["hide_tabs"] => string(1) "0"
["_xfRequestUri"] => string(48) "/forums/filters-bioloog-en-pompen.38/post-thread"
["_xfWithData"] => string(1) "1"
 
In the admin panel I got a message from Xenforo that there were obsolete templates and I simply opened the two templates displayed and manually saved the changes made by the latest Siropu chat update
 
In the admin panel I got a message from Xenforo that there were obsolete templates and I simply opened the two templates displayed and manually saved the changes made by the latest Siropu chat update
I checked multiple times on various occasions - and did not have such a message - but the error seems to have gone away, by itself... at least, I have not seen it since it first appeared. :unsure:🤓
 
This is probably simple but I can't seem to find the setting. How do I get rid of the collapsible white chatroom bar that appears by default as a sticky element at the bottom of the page?
 
How do I get rid of the collapsible white chatroom bar that appears by default as a sticky element at the bottom of the page?
You can either change it from your chat user options or from chat admin options but the ACP change will not override the user setting.
 
Since the upgrade to XF 2.3 and chat 2.4.4 users (not all, about 20%) are complaining about the fact that a single chat will be copied multiple times.
Some users see this copied over 5 or 6 times, i see my chats double after a few seconds, a refresh (F5) will remove the doubles. See this printscreen below. Any clue here?
1722494062367.webp
 
Back
Top Bottom