[DCom] Live Content

[DCom] Live Content [Paid] 2.7.12

No permission to buy ($30.00)
Does anyone else have these issues:
1) certain posts duplicated when on a thread with lots of people posting live
2) when Ajax pagination is enabled, the next page numbers take you to the bottom of the next thread rather than the top

Aah I see that double posts are going to be fixed. Please release it soon. Users see their posts being double posted and delete it.
 
This guy is the Nancy Pelosi of developers. Buy it, see if it works. If it doesn't? You are screwed.

@XenForo This add on does not work with your cloud environment.
 
DimmmCom updated [DCom] Live Content with a new update entry:

2.5.1

  • Added Swoole support (requires Swoole php extension and PHP >= 8.0)
  • Choosing where to display the block of those reading the thread
  • Added socket server management from the admin panel (requires exec function enabled)
  • All known bugs have been fixed.
Before installing the plugin, you must stop the socket server.

Read the rest of this update entry...
 
@DimmmCom have you seen an issue when a logged in user hits the next page button on a multi page thread, the focus incorrectly goes to the bottom of the page ie msg box instead of the top of the page? Wondering if it's your addon causing this.
 
@DimmmCom have you seen an issue when a logged in user hits the next page button on a multi page thread, the focus incorrectly goes to the bottom of the page ie msg box instead of the top of the page? Wondering if it's your addon causing this.
It does seem to be this (not sue if you saw my reply to your ticket as it says not seen but maybe saw the email).

The issue is that when the new content is loaded in, the browser either stays at the same scroll position it already was, or it gets anchored to the bottom of the page if you were scrolled down far enough. I had a similar issue with the embedded iframe comments with our WordPress integration. The solution would just be to scroll the browser back to the top of the page after injecting the new content.
 
It does seem to be this (not sue if you saw my reply to your ticket as it says not seen but maybe saw the email).

The issue is that when the new content is loaded in, the browser either stays at the same scroll position it already was, or it gets anchored to the bottom of the page if you were scrolled down far enough. I had a similar issue with the embedded iframe comments with our WordPress integration. The solution would just be to scroll the browser back to the top of the page after injecting the new content.

Hey Matt, appreciate you chiming in, I did not see the ticket reply nor do I know where to check :) I was sneakily suspecting it may have something to do with an addon.

I'll ask @DimmmCom to check if he can repro this issue.

Either way super nice of you to help.
 
Last edited:
@DimmmCom have you seen an issue when a logged in user hits the next page button on a multi page thread, the focus incorrectly goes to the bottom of the page ie msg box instead of the top of the page? Wondering if it's your addon causing this.
This problem has been fixed since version 2.5.0

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
So did the upgrade, stopped socket server before, got a million errors in the admin CP.

Weirdly my systemctl job no longer works and I am unable to stop/start socket_server using php socket_server stop/start. The service and functinoality seems to be working but neither systemctl nor php socker_server stop/start does anything .


Something buggered up.

Code:
[23:25][root@ccf public]# systemctl status ccf_workerman_socket.service -l
● ccf_workerman_socket.service - CCF Workerman Socket IO
   Loaded: loaded (/etc/systemd/system/ccf_workerman_socket.service; enabled; vendor preset: disabled)
   Active: activating (start) since Wed 2023-11-01 23:25:28 UTC; 49s ago
  Process: 4563 ExecStart=/usr/local/bin/php /home/nginx/domains/mysite.com/public/socket_server.php start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/ccf_workerman_socket.service
           ├─4587 WorkerMan: master process  start_file=/home/nginx/domains/mysite.com/public/socket_server.php
           ├─4588 WorkerMan: worker process  ChannelServer frame://127.0.0.1:2206
           ├─4589 WorkerMan: worker process  globalDataServer frame://127.0.0.1:2207
           └─4590 WorkerMan: worker process  PHPSocketIO socketIO://0.0.0.0:2053

Nov 01 23:25:34 ccf php[4563]: --------------------------------------------- WORKERMAN ---------------------------------------------
Nov 01 23:25:34 ccf php[4563]: Workerman version:4.1.13          PHP version:8.0.28           Event-Loop:\Workerman\Events\Event
Nov 01 23:25:34 ccf php[4563]: ---------------------------------------------- WORKERS ----------------------------------------------
Nov 01 23:25:34 ccf php[4563]: proto   user            worker              listen                     processes    status
Nov 01 23:25:34 ccf php[4563]: tcp     root            ChannelServer       frame://127.0.0.1:2206     1             [OK]
Nov 01 23:25:34 ccf php[4563]: tcp     root            globalDataServer    frame://127.0.0.1:2207     1             [OK]
Nov 01 23:25:34 ccf php[4563]: tcp     root            PHPSocketIO         socketIO://0.0.0.0:2053    1             [OK]
Nov 01 23:25:34 ccf php[4563]: -----------------------------------------------------------------------------------------------------
Nov 01 23:25:34 ccf php[4563]: Input "php /home/nginx/domains/mysite.com/public/socket_server.php stop" to stop. Start success.
Nov 01 23:25:34 ccf systemd[1]: Can't open PID file /home/nginx/domains/mysite.com/public/internal_data/dcom_live_content.pid (yet?) after start: No such file or directory

Code:
Nov 01 23:35:39 ccf systemd[1]: Daemon never wrote its PID file. Failing.
Nov 01 23:35:39 ccf systemd[1]: Failed to start CCF Workerman Socket IO.
Nov 01 23:35:39 ccf systemd[1]: Unit ccf_workerman_socket.service entered failed state.
Nov 01 23:35:39 ccf systemd[1]: ccf_workerman_socket.service failed.
Nov 01 23:35:40 ccf systemd[1]: ccf_workerman_socket.service holdoff time over, scheduling restart.
Nov 01 23:35:40 ccf systemd[1]: Stopped CCF Workerman Socket IO.
Nov 01 23:35:40 ccf systemd[1]: Starting CCF Workerman Socket IO...
Nov 01 23:35:40 ccf php[6944]: --------------------------------------------- WORKERMAN ---------------------------------------------
Nov 01 23:35:40 ccf php[6944]: Workerman version:4.1.13          PHP version:8.0.28           Event-Loop:\Workerman\Events\Event
Nov 01 23:35:40 ccf php[6944]: ---------------------------------------------- WORKERS ----------------------------------------------
Nov 01 23:35:40 ccf php[6944]: proto   user            worker              listen                     processes    status
Nov 01 23:35:40 ccf php[6944]: tcp     root            ChannelServer       frame://127.0.0.1:2206     1             [OK]
Nov 01 23:35:40 ccf php[6944]: tcp     root            globalDataServer    frame://127.0.0.1:2207     1             [OK]
Nov 01 23:35:40 ccf php[6944]: tcp     root            PHPSocketIO         socketIO://0.0.0.0:2053    1             [OK]

I guess it works differently now and is no longer writing out a PID file?

Here's my systemctl service config which I have not changed for a really long time that no longer works.

Code:
[Unit]
Description=CCF Workerman Socket IO
After=mysql.service
Requires=mysql.service

[Service]
Type=forking
PIDFile=/home/nginx/domains/mysite.com/public/internal_data/dcom_live_content.pid
User=root
WorkingDirectory=/home/nginx/domains/mysite.com/public
ExecStart=/usr/local/bin/php /home/nginx/domains/mysite.com/public/socket_server.php start
ExecStop=/usr/local/bin/php /home/nginx/domains/mysite.com/public/socket_server.php stop
ExecReload=/usr/local/bin/php /home/nginx/domains/mysite.com/public/socket_server.php restart
Restart=always
TimeoutSec=300

[Install]
WantedBy=multi-user.target
 
Last edited:
So did the upgrade, stopped socket server before, got a million errors in the admin CP.

Weirdly my systemctl job no longer works and I am unable to stop/start socket_server using php socket_server stop/start. The service and functinoality seems to be working but neither systemctl nor php socker_server stop/start does anything .


Something buggered up.

Code:
[23:25][root@ccf public]# systemctl status ccf_workerman_socket.service -l
● ccf_workerman_socket.service - CCF Workerman Socket IO
   Loaded: loaded (/etc/systemd/system/ccf_workerman_socket.service; enabled; vendor preset: disabled)
   Active: activating (start) since Wed 2023-11-01 23:25:28 UTC; 49s ago
  Process: 4563 ExecStart=/usr/local/bin/php /home/nginx/domains/mysite.com/public/socket_server.php start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/ccf_workerman_socket.service
           ├─4587 WorkerMan: master process  start_file=/home/nginx/domains/mysite.com/public/socket_server.php
           ├─4588 WorkerMan: worker process  ChannelServer frame://127.0.0.1:2206
           ├─4589 WorkerMan: worker process  globalDataServer frame://127.0.0.1:2207
           └─4590 WorkerMan: worker process  PHPSocketIO socketIO://0.0.0.0:2053

Nov 01 23:25:34 ccf php[4563]: --------------------------------------------- WORKERMAN ---------------------------------------------
Nov 01 23:25:34 ccf php[4563]: Workerman version:4.1.13          PHP version:8.0.28           Event-Loop:\Workerman\Events\Event
Nov 01 23:25:34 ccf php[4563]: ---------------------------------------------- WORKERS ----------------------------------------------
Nov 01 23:25:34 ccf php[4563]: proto   user            worker              listen                     processes    status
Nov 01 23:25:34 ccf php[4563]: tcp     root            ChannelServer       frame://127.0.0.1:2206     1             [OK]
Nov 01 23:25:34 ccf php[4563]: tcp     root            globalDataServer    frame://127.0.0.1:2207     1             [OK]
Nov 01 23:25:34 ccf php[4563]: tcp     root            PHPSocketIO         socketIO://0.0.0.0:2053    1             [OK]
Nov 01 23:25:34 ccf php[4563]: -----------------------------------------------------------------------------------------------------
Nov 01 23:25:34 ccf php[4563]: Input "php /home/nginx/domains/mysite.com/public/socket_server.php stop" to stop. Start success.
Nov 01 23:25:34 ccf systemd[1]: Can't open PID file /home/nginx/domains/mysite.com/public/internal_data/dcom_live_content.pid (yet?) after start: No such file or directory

Code:
Nov 01 23:35:39 ccf systemd[1]: Daemon never wrote its PID file. Failing.
Nov 01 23:35:39 ccf systemd[1]: Failed to start CCF Workerman Socket IO.
Nov 01 23:35:39 ccf systemd[1]: Unit ccf_workerman_socket.service entered failed state.
Nov 01 23:35:39 ccf systemd[1]: ccf_workerman_socket.service failed.
Nov 01 23:35:40 ccf systemd[1]: ccf_workerman_socket.service holdoff time over, scheduling restart.
Nov 01 23:35:40 ccf systemd[1]: Stopped CCF Workerman Socket IO.
Nov 01 23:35:40 ccf systemd[1]: Starting CCF Workerman Socket IO...
Nov 01 23:35:40 ccf php[6944]: --------------------------------------------- WORKERMAN ---------------------------------------------
Nov 01 23:35:40 ccf php[6944]: Workerman version:4.1.13          PHP version:8.0.28           Event-Loop:\Workerman\Events\Event
Nov 01 23:35:40 ccf php[6944]: ---------------------------------------------- WORKERS ----------------------------------------------
Nov 01 23:35:40 ccf php[6944]: proto   user            worker              listen                     processes    status
Nov 01 23:35:40 ccf php[6944]: tcp     root            ChannelServer       frame://127.0.0.1:2206     1             [OK]
Nov 01 23:35:40 ccf php[6944]: tcp     root            globalDataServer    frame://127.0.0.1:2207     1             [OK]
Nov 01 23:35:40 ccf php[6944]: tcp     root            PHPSocketIO         socketIO://0.0.0.0:2053    1             [OK]

I guess it works differently now and is no longer writing out a PID file?

Here's my systemctl service config which I have not changed for a really long time that no longer works.

Code:
[Unit]
Description=CCF Workerman Socket IO
After=mysql.service
Requires=mysql.service

[Service]
Type=forking
PIDFile=/home/nginx/domains/mysite.com/public/internal_data/dcom_live_content.pid
User=root
WorkingDirectory=/home/nginx/domains/mysite.com/public
ExecStart=/usr/local/bin/php /home/nginx/domains/mysite.com/public/socket_server.php start
ExecStop=/usr/local/bin/php /home/nginx/domains/mysite.com/public/socket_server.php stop
ExecReload=/usr/local/bin/php /home/nginx/domains/mysite.com/public/socket_server.php restart
Restart=always
TimeoutSec=300

[Install]
WantedBy=multi-user.target

PID file location has been changed
Code:
PIDFile=/home/nginx/domains/mysite.com/public/src/addons/DCom/LiveContent/SocketServer/Workerman/workerman_server.pid
 
PID file location has been changed
Code:
PIDFile=/home/nginx/domains/mysite.com/public/src/addons/DCom/LiveContent/SocketServer/Workerman/workerman_server.pid
Ahaaaaa lol, you may want to mention that in the upgrade instructions or I missed it along the way. Thanks
 
Back
Top Bottom