[021] Real time chat [Deleted]

.no, this is a completely free add-on
thank you.

Code:
location /chat.io/ {
    proxy_pass http://127.0.0.1:{your_chat_port};
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
}

I have pasted this block in the nginx configuration file for my forum. And I get the following error:
nginx: [emerg] unknown "connection_upgrade" variable

I know that $http_upgrade is not defined but what value goes in there ?
 
thank you.

Code:
location /chat.io/ {
    proxy_pass http://127.0.0.1:{your_chat_port};
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
}

I have pasted this block in the nginx configuration file for my forum. And I get the following error:
nginx: [emerg] unknown "connection_upgrade" variable

I know that $http_upgrade is not defined but what value goes in there ?
.it can help you http://nginx.org/en/docs/http/websocket.html
 
.if you using websockets, you should configure communication type in options
View attachment 224611
ok great!

I got this now.

Code:
Workerman[chat_cli] start in DAEMON mode
------------------------------------------- WORKERMAN --------------------------------------------
Workerman version:3.5.28          PHP version:7.2.24-0ubuntu0.18.04.4
-------------------------------------------- WORKERS ---------------------------------------------
proto   user            worker           listen                     processes    status
tcp     don             PHPSocketIO      socketIO://0.0.0.0:2999    1             [OK]
tcp     don             ChannelServer    frame://127.0.0.1:3205     1             [OK]
--------------------------------------------------------------------------------------------------
Input "php chat_cli stop" to stop. Start success.

Do I need to add any of these values to the Xf admin option page ?

This is how it looks right now.
1588952975733.webp

Thanks for all your help
 
ok so I have added http://127.0.0.1:2999
I have added the widget and gave my user' usergroup permission to all and I still cannot see the widget. Not even on the default xf theme.
 

I have added the widget and gave my user' usergroup permission to all and I still cannot see the widget. Not even on the default xf theme.
.probably the problem is on your side. You can purchase installation services so you don’t lose time)
 
.probably the problem is on your side. You can purchase installation services so you don’t lose time)
Figured it out! I did not provide permissions. lol

All good it is working great. Will add a review shortly.

Thanks.
 
  • Like
Reactions: 021
@021 one thing I noticed is that if I add emojis in the message I get an error in the pop up.

Code:
Oops! We ran into some problems.
XF\Db\Exception: MySQL query error [1366]: Incorrect string value: '\xF0\x9F\x99\x82' for column 'message' at row 1 in src/XF/Db/AbstractStatement.php at line 228
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 77
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 94
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 221
XF\Db\AbstractAdapter->insert() in src/XF/Search/Source/MySqlFt.php at line 96
XF\Search\Source\MySqlFt->index() in src/XF/Search/Search.php at line 40
XF\Search\Search->index() in src/XF/Behavior/Indexable.php at line 46
XF\Behavior\Indexable->XF\Behavior\{closure}() in src/XF.php at line 291
XF::triggerRunOnce() in src/XF/Mvc/Dispatcher.php at line 156
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2184
XF\App->run() in src/XF.php at line 391
XF::runApp() in index.php at line 20

EDITED: Never mind, I had to convert the db for emojis. All good now.
 
Last edited:
@021 can you please provide an update as to when your products will be for-sale again?

I know you said you were working on restoring things but if you're unable to achieve that soon then it might make sense for us to delete the resources and then restore them at a later date.
 
@021 can you please provide an update as to when your products will be for-sale again?

I know you said you were working on restoring things but if you're unable to achieve that soon then it might make sense for us to delete the resources and then restore them at a later date.
.sales recovery planned in the next 9 days :)
 
There is a server error logged using XF 2.2

  • ErrorException: Template error: Template public:editor_smilies is unknown
  • src/XF/Template/Templater.php:663
  • Generated by: Lee
  • Sep 5, 2020 at 1:47 PM

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template public...', '/home/talkdepr/...', 663, Array)
#1 src/XF/Template/Templater.php(663): trigger_error('Template public...', 512)
#2 src/XF/Template/Templater.php(1565): XF\Template\Templater->getTemplateData('public', 'editor_smilies')
#3 src/XF/Template/Templater.php(1627): XF\Template\Templater->renderTemplate('editor_smilies', Array)
#4 internal_data/code_cache/templates/l1/s5/public/real_time_chat_macros.php(218): XF\Template\Templater->includeTemplate('public:editor_s...', Array)
#5 src/XF/Template/Templater.php(798): XF\Template\Templater->{closure}(Object(Iconify\Iconify\Template\Templater), Array, NULL)
#6 internal_data/code_cache/templates/l1/s5/public/real_time_chat.php(70): XF\Template\Templater->callMacro('real_time_chat_...', 'chat', Array, Array)
#7 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(Iconify\Iconify\Template\Templater), Array, NULL)
#8 src/XF/Widget/WidgetRenderer.php(62): XF\Template\Templater->renderTemplate('real_time_chat', Array)
#9 src/XF/Widget/WidgetRenderer.php(67): XF\Widget\WidgetRenderer->render()
#10 internal_data/code_cache/templates/l1/s5/public/_page_node.37.php(7): XF\Widget\WidgetRenderer->__toString()
#11 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(Iconify\Iconify\Template\Templater), Array, NULL)
#12 src/XF/Template/Templater.php(1627): XF\Template\Templater->renderTemplate('_page_node.37', Array)
#13 internal_data/code_cache/templates/l1/s5/public/page_view.php(76): XF\Template\Templater->includeTemplate('public:_page_no...', Array)
#14 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(Iconify\Iconify\Template\Templater), Array, NULL)
#15 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('page_view', Array)
#16 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#17 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Page\\View', 'public:page_vie...', Array)
#18 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#21 src/XF/App.php(2298): XF\Mvc\Dispatcher->run()
#22 src/XF.php(464): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}

Request state​

array(4) {
["url"] => string(16) "/pages/livechat/"
["referrer"] => string(46) "https://www.helpmindsheal.com/chat/history/40/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

https://www.helpmindsheal.com/admin.php?logs/server-errors/2/delete
 
Top Bottom