F
Filament5mo ago
arshad

Export Action not working in production on queue --- local working fine

everytime job fail with this error
------------------------------------------------------ TypeError: Cannot assign PHP_Incomplete_Class to property Filament\Actions\Exports\Jobs\PrepareCsvExport::$exporter of type Filament\Actions\Exports\Exporter in /workspace/vendor/laravel/framework/src/Illuminate/Queue/SerializesModels.php:92 Stack trace: #0 /workspace/vendor/laravel/framework/src/Illuminate/Queue/SerializesModels.php(92): ReflectionProperty->setValue() #1 [internal function]: Filament\Actions\Exports\Jobs\PrepareCsvExport->unserialize() #2 /workspace/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(98): unserialize() #3 /workspace/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(61): Illuminate\Queue\CallQueuedHandler->getCommand() #4 /workspace/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(102): Illuminate\Queue\CallQueuedHandler->call() #5 /workspace/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(441): Illuminate\Queue\Jobs\Job->fire() #6 /workspace/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(391): Illuminate\Queue\Worker->process() #7 /workspace/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(178): Illuminate\Queue\Worker->runJob() #8 /workspace/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(148): Illuminate\Queue\Worker->daemon() #9 /workspace/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(131): Illuminate\Queue\Console\WorkCommand->runWorker() #10 /workspace/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle() #11 /workspace/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::{closure:Illuminate\Container\BoundMethod::call():35}()
1 Reply
adigamara24
adigamara242mo ago
Hi @arshad , I just faced the same issue. In my case, it was resolved by defining getJobQueue() before calling getColumns(). Also, don’t forget to clear it first before restarting and running a worker.
No description

Did you find this page helpful?