[DCom] Live Content

[DCom] Live Content [Paid] 3.3.1

No permission to buy ($30.00)
Updating topics in the New Threads and Posts widgets is now supported. But in the future I will add more on the topics list page.

Really?? What do you mean new threads? I don't see updates to any new thread view in XF...
 
@DimmmCom latest 3.2.5 version good to try out? No major known bugs? What specific server load optimizations should I check for?
The latest version fixed code that was causing regression in the asynchronous server. Also methods sending events to the socket server were changed. On forums with a large number of entity extensions, sometimes there was a situation when an event was sent to the asynchronous server, but the transaction to create content (post, topic, profile post) was not physically finished and the content did not exist yet. Therefore, this update is not minor and is recommended.
I will be releasing a new version of the plugin soon, so if you don't want to deal with the update twice, you can wait a bit.
 
The latest version fixed code that was causing regression in the asynchronous server. Also methods sending events to the socket server were changed. On forums with a large number of entity extensions, sometimes there was a situation when an event was sent to the asynchronous server, but the transaction to create content (post, topic, profile post) was not physically finished and the content did not exist yet. Therefore, this update is not minor and is recommended.
I will be releasing a new version of the plugin soon, so if you don't want to deal with the update twice, you can wait a bit.
Thanks, I can wait a bit if you've got something coming out soon.
 
Can't upgrade from 3.2.5 says not all files are writable for example log.txt.

I had just upgraded to 3.2.5 btw when this update came :) @DimmmCom

  • ErrorException: Failed to write files for DCom/LiveContent action, including src/addons/DCom/LiveContent/SocketServer/SwooleServer/log.txt
  • src/XF/Error.php:81
  • Generated by: Nik
  • Mar 13, 2025 at 6:46 PM

Stack trace​

#0 src/XF.php(266): XF\Error->logError('Failed to write...', false)
#1 src/XF/Job/AddOnInstallBatch.php(162): XF::logError('Failed to write...')
#2 src/XF/Job/AddOnInstallBatch.php(83): XF\Job\AddOnInstallBatch->stepInit(Object(XF\Timer))
#3 src/XF/Job/Manager.php(275): XF\Job\AddOnInstallBatch->run(8)
#4 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#5 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#6 src/XF/Admin/Controller/ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8)
#7 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(Hampel\WhatsNewDigest\XF\Admin\Controller\Tools), NULL)
#9 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Hampel\WhatsNewDigest\XF\Admin\Controller\Tools), NULL)
#10 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#12 src/XF.php(806): XF\App->run()
#13 admin.php(15): XF::runApp('XF\\Admin\\App')
#14 {main}

Request state​

array(4) {
["url"] => string(24) "/admin.php?tools/run-job"
["referrer"] => string(168) "https://canadiancorvetteforums.com/...ns/install-from-archive-complete&batch_id=368"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(95) "https://mysite.com/admin.php?add-ons/install-from-archive-complete&batch_id=368"
["_xfToken"] => string(8) "********"
["only_ids"] => string(8) "17957436"
}
}
 
Can't upgrade from 3.2.5 says not all files are writable for example log.txt.

I had just upgraded to 3.2.5 btw when this update came :) @DimmmCom

  • ErrorException: Failed to write files for DCom/LiveContent action, including src/addons/DCom/LiveContent/SocketServer/SwooleServer/log.txt
  • src/XF/Error.php:81
  • Generated by: Nik
  • Mar 13, 2025 at 6:46 PM

Stack trace​

#0 src/XF.php(266): XF\Error->logError('Failed to write...', false)
#1 src/XF/Job/AddOnInstallBatch.php(162): XF::logError('Failed to write...')
#2 src/XF/Job/AddOnInstallBatch.php(83): XF\Job\AddOnInstallBatch->stepInit(Object(XF\Timer))
#3 src/XF/Job/Manager.php(275): XF\Job\AddOnInstallBatch->run(8)
#4 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#5 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#6 src/XF/Admin/Controller/ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8)
#7 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(Hampel\WhatsNewDigest\XF\Admin\Controller\Tools), NULL)
#9 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Hampel\WhatsNewDigest\XF\Admin\Controller\Tools), NULL)
#10 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#12 src/XF.php(806): XF\App->run()
#13 admin.php(15): XF::runApp('XF\\Admin\\App')
#14 {main}

Request state​

array(4) {
["url"] => string(24) "/admin.php?tools/run-job"
["referrer"] => string(168) "https://canadiancorvetteforums.com/admin.php?tools/run-job&only=addOnInstallBatch368&_xfRedirect=/admin.php?add-ons/install-from-archive-complete&batch_id=368"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(95) "https://mysite.com/admin.php?add-ons/install-from-archive-complete&batch_id=368"
["_xfToken"] => string(8) "********"
["only_ids"] => string(8) "17957436"
}
}
moment
 
Can't start socket_server...

To be fair I was unable to start it with 3.2.5 which I was about to report.

socket_server.php status says not run.....
 
php socket_server start -d

I see the processes but backend says it's not running...

0:00:00 php socket_server start -d
root 3579 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3580 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3581 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3582 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3583 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3584 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3585 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3586 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3587 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3588 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3589 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3590 3569 0 21:00 ? 00:00:00 php socket_server start -d

1741917742678.png


More importantly front end is not pushing anything to the server...

Did something change in 3.2.5 from before?

I have not changed anything other than upgrading this from 3.11 to 3.2.5
 
I see the processes but backend says it's not running...

0:00:00 php socket_server start -d
root 3579 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3580 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3581 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3582 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3583 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3584 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3585 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3586 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3587 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3588 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3589 3569 0 21:00 ? 00:00:00 php socket_server start -d
root 3590 3569 0 21:00 ? 00:00:00 php socket_server start -d

View attachment 1216


More importantly front end is not pushing anything to the server...

Did something change in 3.2.5 from before?

I have not changed anything other than upgrading this from 3.11 to 3.2.5
Before the upgrade, the server was started from the command line or from the Xenforo control panel,
 
Before the upgrade, the server was started from the command line or from the Xenforo control panel,

Command line - I have a systemctl job...

Here's what socker_server.php status tells me:

----------------SWOOLE SERVER IS RUNNING----------------
Swoole version: 6.0.0 PHP version: 8.3.16
Start time 2025-03-14 02:00:34
Connection num 26
Abort count 0
Accept count 241
Close count 215
Worker num 20
Task worker num 0
User worker num 0
Idle worker num 19
Dispatch count 1130
Request count 1129
Response count 1055
Total recv bytes 106474
Total send bytes 51057
Pipe packet msg id 2616
Concurrency 1
Session round 241
Min fd 58
Max fd 88
Worker request count 27
Worker response count 32
Worker dispatch count 28
Worker concurrency 1
Coroutine num 3
Coroutine peek num 5

So it's running but for some reason not detecting?
 
I have a systemctl job...
You need to stop the system service and change the configuration.
The launch commands have changed
Bash:
ExecStart=/usr/bin/php socket_server start -d
ExecStop=/usr/bin/php socket_server stop
ExecReload=/usr/bin/php socket_server restart
 
Back
Top