[DCom] Live Content

[DCom] Live Content [Paid] 3.0.5

No permission to buy ($30.00)
Once in while i'll get this error:

Pusher\PusherException: Invalid user id 0
src/addons/DCom/LiveContent/vendor/pusher/pusher-php-server/src/Pusher.php:237
Generated by: Unknown account
Dec 16, 2024 at 9:34 AM

Stack trace​

Code:
#0 src/addons/DCom/LiveContent/vendor/pusher/pusher-php-server/src/Pusher.php(1210): Pusher\Pusher->validate_user_id('0')
#1 src/addons/DCom/LiveContent/vendor/pusher/pusher-php-server/src/Pusher.php(866): Pusher\Pusher->validate_user_data(Array)
#2 src/addons/DCom/LiveContent/Pub/Controller/Pusher.php(74): Pusher\Pusher->authenticateUser('203125.252042', Array)
#3 src/XF/Mvc/Dispatcher.php(362): DCom\LiveContent\Pub\Controller\Pusher->actionUserAuth(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DCom\\LiveConten...', 'UserAuth', Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\Pusher), NULL)
#5 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\Pusher), NULL)
#6 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#8 src/XF.php(806): XF\App->run()
#9 index.php(23): XF::runApp('XF\\Pub\\App')
#10 {main}

Request state​

Code:
array(4) {
["url"] => string(17) "/pusher/user-auth"
["referrer"] => string(57) "https://unifi-forum.nl/onderwerpen/nefit-easy.1183/page-3"
["_GET"] => array(0) {
}
["_POST"] => array(1) {
["socket_id"] => string(13) "203125.252042"
}
}

What can cause this?
 
Once in while i'll get this error:

Pusher\PusherException: Invalid user id 0
src/addons/DCom/LiveContent/vendor/pusher/pusher-php-server/src/Pusher.php:237
Generated by: Unknown account
Dec 16, 2024 at 9:34 AM

Stack trace​

Code:
#0 src/addons/DCom/LiveContent/vendor/pusher/pusher-php-server/src/Pusher.php(1210): Pusher\Pusher->validate_user_id('0')
#1 src/addons/DCom/LiveContent/vendor/pusher/pusher-php-server/src/Pusher.php(866): Pusher\Pusher->validate_user_data(Array)
#2 src/addons/DCom/LiveContent/Pub/Controller/Pusher.php(74): Pusher\Pusher->authenticateUser('203125.252042', Array)
#3 src/XF/Mvc/Dispatcher.php(362): DCom\LiveContent\Pub\Controller\Pusher->actionUserAuth(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DCom\\LiveConten...', 'UserAuth', Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\Pusher), NULL)
#5 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\Pusher), NULL)
#6 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#8 src/XF.php(806): XF\App->run()
#9 index.php(23): XF::runApp('XF\\Pub\\App')
#10 {main}

Request state​

Code:
array(4) {
["url"] => string(17) "/pusher/user-auth"
["referrer"] => string(57) "https://unifi-forum.nl/onderwerpen/nefit-easy.1183/page-3"
["_GET"] => array(0) {
}
["_POST"] => array(1) {
["socket_id"] => string(13) "203125.252042"
}
}

What can cause this?
Fix in next update.
 
No, those errors appear after installing the addon, as the default option is pusher.
The only way to fix it is to switch to Swoole very quickly after an addon install.
I get it) I've already fixed that error. I think I'll post an update today.
 
Some bugs I found:
- On thread view, when ajax navigation is enabled the last or 1st page button doesn't work.
- When whatsxfmessenger style is enabled, it's too bright on dark style.
 
I got this error with Pusher:
PHP:
Server error log
Error: Call to a member function authorizeChannel() on null src/addons/DCom/LiveContent/Pub/Controller/Pusher.php:40
Generated by: user101 Dec 18, 2024 at 8:38 AM

Stack trace
#0 src/XF/Mvc/Dispatcher.php(362): DCom\LiveContent\Pub\Controller\Pusher->actionAuth(Object(XF\Mvc\ParameterBag))
#1 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DCom\\LiveConten...', 'Auth', Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\Pusher), NULL)
#2 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\Pusher), NULL)
#3 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#5 src/XF.php(806): XF\App->run()
#6 index.php(23): XF::runApp('XF\\Pub\\App')
#7 {main}

Request state
array(4) {
  ["url"] => string(12) "/pusher/auth"
  ["referrer"] => string(35) "https://xf23.com/threads/1234/"
  ["_GET"] => array(1) {
    ["/pusher/auth"] => string(0) ""
  }
  ["_POST"] => array(2) {
    ["socket_id"] => string(14) "33503.30645922"
    ["channel_name"] => string(22) "private-thread-1234"
  }
}
 
I got this error with Pusher:
PHP:
Server error log
Error: Call to a member function authorizeChannel() on null src/addons/DCom/LiveContent/Pub/Controller/Pusher.php:40
Generated by: user101 Dec 18, 2024 at 8:38 AM

Stack trace
#0 src/XF/Mvc/Dispatcher.php(362): DCom\LiveContent\Pub\Controller\Pusher->actionAuth(Object(XF\Mvc\ParameterBag))
#1 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DCom\\LiveConten...', 'Auth', Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\Pusher), NULL)
#2 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\Pusher), NULL)
#3 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#5 src/XF.php(806): XF\App->run()
#6 index.php(23): XF::runApp('XF\\Pub\\App')
#7 {main}

Request state
array(4) {
  ["url"] => string(12) "/pusher/auth"
  ["referrer"] => string(35) "https://xf23.com/threads/1234/"
  ["_GET"] => array(1) {
    ["/pusher/auth"] => string(0) ""
  }
  ["_POST"] => array(2) {
    ["socket_id"] => string(14) "33503.30645922"
    ["channel_name"] => string(22) "private-thread-1234"
  }
}
FIX
 
@rdn , please show the output of the sudo lsof -i :2053 (Swoole port number) command and then the output of the ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head command
 
Back
Top