Anyone facing this issue? Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed #46842
Replies: 2 comments 3 replies
-
Have you tried queuing something related to the UploadedFile class? |
Beta Was this translation helpful? Give feedback.
-
I have a similar problem with PDO:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm newbie here...
I don't know where is the exact problem, because the log only show anything about Queue-related-class. Here what log shows:
[2023-04-20 20:52:06] local.ERROR: Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed {"userId":27,"exception":"[object] (Exception(code: 0): Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed at /dir/vendor/laravel/serializable-closure/src/Serializers/Signed.php:68)
[stacktrace]
#0 /dir/vendor/laravel/serializable-closure/src/Serializers/Signed.php(68): serialize(Object(Laravel\SerializableClosure\Serializers\Native))
#1 [internal function]: Laravel\SerializableClosure\Serializers\Signed->__serialize()
#2 /dir/vendor/laravel/framework/src/Illuminate/Queue/Queue.php(158): serialize(Object(Illuminate\Queue\CallQueuedClosure))
#3 /dir/vendor/laravel/framework/src/Illuminate/Queue/Queue.php(127): Illuminate\Queue\Queue->createObjectPayload(Object(Illuminate\Queue\CallQueuedClosure), NULL)
#4 /dir/vendor/laravel/framework/src/Illuminate/Queue/Queue.php(105): Illuminate\Queue\Queue->createPayloadArray(Object(Illuminate\Queue\CallQueuedClosure), NULL, '')
#5 /dir/vendor/laravel/framework/src/Illuminate/Queue/SyncQueue.php(38): Illuminate\Queue\Queue->createPayload(Object(Illuminate\Queue\CallQueuedClosure), NULL, '')
#6 /dir/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(253): Illuminate\Queue\SyncQueue->push(Object(Illuminate\Queue\CallQueuedClosure))
#7 /dir/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(229): Illuminate\Bus\Dispatcher->pushCommandToQueue(Object(Illuminate\Queue\SyncQueue), Object(Illuminate\Queue\CallQueuedClosure))
#8 /dir/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(95): Illuminate\Bus\Dispatcher->dispatchToQueue(Object(Illuminate\Queue\CallQueuedClosure))
#9 /dir/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(266): Illuminate\Bus\Dispatcher->dispatchSync(Object(Illuminate\Queue\CallQueuedClosure), NULL)
#10 /dir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}()
#11 /dir/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#12 /dir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(81): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#13 /dir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Object(Closure), Object(Closure))
#14 /dir/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Object(Closure), Array, NULL)
#15 /dir/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1250): Illuminate\Container\Container->call(Object(Closure))
#16 /dir/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(215): Illuminate\Foundation\Application->terminate()
#17 /dir/public/index.php(60): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\RedirectResponse))
#18 {main}
Thank you...
Beta Was this translation helpful? Give feedback.
All reactions