This repository was archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 658
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
StatisticsUpdated job crashing #10
Copy link
Copy link
Closed
Description
I've gone through the install and things seem to be working great as a drop-in replacement for Pusher - thanks! This is way nicer to use than the node echo server! :-)
I do keep seing a failed job in the horizon queue runner though - and no stats are being gathered (but the notifications are coming through ok in the app). The queue runner is outputting :
[2018-12-05 09:15:50][199] Processing: BeyondCode\LaravelWebsockets\Statistics\Events\StatisticsUpdated
Symfony\Component\Debug\Exception\FatalErrorException : method_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "BeyondCode\LaravelWebsockets\Statistics\Events\StatisticsUpdated" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition
at /Users/ohffs/Documents/code/examdb/vendor/laravel/framework/src/Illuminate/Broadcasting/BroadcastEvent.php:43
39| * @return void
40| */
41| public function handle(Broadcaster $broadcaster)
42| {
> 43| $name = method_exists($this->event, 'broadcastAs')
44| ? $this->event->broadcastAs() : get_class($this->event);
45|
46| $broadcaster->broadcast(
47| Arr::wrap($this->event->broadcastOn()), $name,
Whoops\Exception\ErrorException : method_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "BeyondCode\LaravelWebsockets\Statistics\Events\StatisticsUpdated" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition
at /Users/ohffs/Documents/code/examdb/vendor/laravel/framework/src/Illuminate/Broadcasting/BroadcastEvent.php:43
39| * @return void
40| */
41| public function handle(Broadcaster $broadcaster)
42| {
> 43| $name = method_exists($this->event, 'broadcastAs')
44| ? $this->event->broadcastAs() : get_class($this->event);
45|
46| $broadcaster->broadcast(
47| Arr::wrap($this->event->broadcastOn()), $name,
PHP Fatal error: method_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "BeyondCode\LaravelWebsockets\Statistics\Events\StatisticsUpdated" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /Users/ohffs/Documents/code/examdb/vendor/laravel/framework/src/Illuminate/Broadcasting/BroadcastEvent.php on line 43
I'm using redis as the queue driver. I've tried the usual dump-autoload etc, restarting everything - but it keeps happening. I had a look at the StatisticsUpdated class and nothing was leaping out at me as being the 'ah-ha!' problem - sorry :-/
eldair, robinvalk, JoseCage, gcw07 and irazasyed
Metadata
Metadata
Assignees
Labels
No labels