Closed oiesc closed 1 year ago
Hello There. I have a old version (2.x) working on a laravel 8. I'm trying to use the same code, with a new version (3.x) on a laravel 10 but I'm getting the following error:
Error: Class "GuzzleHttp\Psr7\HttpFactory" not found in /var/www/html/app/releases/20230815200624/vendor/kreait/firebase-php/src/Firebase/Factory.php:127 Stack trace: #0 /var/www/html/app/releases/20230815200624/vendor/kreait/laravel-firebase/src/FirebaseProjectManager.php(63): Kreait\Firebase\Factory->__construct() #1 /var/www/html/app/releases/20230815200624/vendor/kreait/laravel-firebase/src/FirebaseProjectManager.php(33): Kreait\Laravel\Firebase\FirebaseProjectManager->configure() #2 /var/www/html/app/releases/20230815200624/vendor/laravel-notification-channels/fcm/src/FcmChannel.php(92): Kreait\Laravel\Firebase\FirebaseProjectManager->project() #3 /var/www/html/app/releases/20230815200624/vendor/laravel-notification-channels/fcm/src/FcmChannel.php(133): NotificationChannels\Fcm\FcmChannel->messaging() #4 /var/www/html/app/releases/20230815200624/vendor/laravel-notification-channels/fcm/src/FcmChannel.php(75): NotificationChannels\Fcm\FcmChannel->sendToFcmMulticast() #5 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(148): NotificationChannels\Fcm\FcmChannel->send() #6 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(106): Illuminate\Notifications\NotificationSender->sendToNotifiable() #7 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Support/Traits/Localizable.php(19): Illuminate\Notifications\NotificationSender->Illuminate\Notifications\{closure}() #8 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(109): Illuminate\Notifications\NotificationSender->withLocale() #9 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/ChannelManager.php(54): Illuminate\Notifications\NotificationSender->sendNow() #10 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/SendQueuedNotifications.php(112): Illuminate\Notifications\ChannelManager->sendNow() #11 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Notifications\SendQueuedNotifications->handle() #12 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() #13 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure() #14 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod() #15 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call() #16 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\Container\Container->call() #17 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}() #18 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then() #20 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\Bus\Dispatcher->dispatchNow() #21 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue\{closure}() #22 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\Pipeline\Pipeline->then() #24 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware() #25 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call() #26 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(439): Illuminate\Queue\Jobs\Job->fire() #27 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(389): Illuminate\Queue\Worker->process() #28 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(176): Illuminate\Queue\Worker->runJob() #29 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(138): Illuminate\Queue\Worker->daemon() #30 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(121): Illuminate\Queue\Console\WorkCommand->runWorker() #31 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle() #32 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() #33 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure() #34 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod() #35 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call() #36 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call() #37 /var/www/html/app/releases/20230815200624/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute() #38 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\Component\Console\Command\Command->run() #39 /var/www/html/app/releases/20230815200624/vendor/symfony/console/Application.php(1081): Illuminate\Console\Command->run() #40 /var/www/html/app/releases/20230815200624/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand() #41 /var/www/html/app/releases/20230815200624/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun() #42 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run() #43 /var/www/html/app/releases/20230815200624/artisan(37): Illuminate\Foundation\Console\Kernel->handle() #44 {main}
I think its a problem with the connection, but I don't know if is a fcm problem or I'm doing something wrong. Someone can help?
Another package was blocking the guzzle update.
Glad you resolved it.
Hello There. I have a old version (2.x) working on a laravel 8. I'm trying to use the same code, with a new version (3.x) on a laravel 10 but I'm getting the following error:
Error: Class "GuzzleHttp\Psr7\HttpFactory" not found in /var/www/html/app/releases/20230815200624/vendor/kreait/firebase-php/src/Firebase/Factory.php:127 Stack trace: #0 /var/www/html/app/releases/20230815200624/vendor/kreait/laravel-firebase/src/FirebaseProjectManager.php(63): Kreait\Firebase\Factory->__construct() #1 /var/www/html/app/releases/20230815200624/vendor/kreait/laravel-firebase/src/FirebaseProjectManager.php(33): Kreait\Laravel\Firebase\FirebaseProjectManager->configure() #2 /var/www/html/app/releases/20230815200624/vendor/laravel-notification-channels/fcm/src/FcmChannel.php(92): Kreait\Laravel\Firebase\FirebaseProjectManager->project() #3 /var/www/html/app/releases/20230815200624/vendor/laravel-notification-channels/fcm/src/FcmChannel.php(133): NotificationChannels\Fcm\FcmChannel->messaging() #4 /var/www/html/app/releases/20230815200624/vendor/laravel-notification-channels/fcm/src/FcmChannel.php(75): NotificationChannels\Fcm\FcmChannel->sendToFcmMulticast() #5 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(148): NotificationChannels\Fcm\FcmChannel->send() #6 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(106): Illuminate\Notifications\NotificationSender->sendToNotifiable() #7 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Support/Traits/Localizable.php(19): Illuminate\Notifications\NotificationSender->Illuminate\Notifications\{closure}() #8 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(109): Illuminate\Notifications\NotificationSender->withLocale() #9 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/ChannelManager.php(54): Illuminate\Notifications\NotificationSender->sendNow() #10 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Notifications/SendQueuedNotifications.php(112): Illuminate\Notifications\ChannelManager->sendNow() #11 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Notifications\SendQueuedNotifications->handle() #12 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() #13 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure() #14 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod() #15 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call() #16 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\Container\Container->call() #17 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}() #18 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then() #20 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\Bus\Dispatcher->dispatchNow() #21 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue\{closure}() #22 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\Pipeline\Pipeline->then() #24 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware() #25 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call() #26 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(439): Illuminate\Queue\Jobs\Job->fire() #27 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(389): Illuminate\Queue\Worker->process() #28 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(176): Illuminate\Queue\Worker->runJob() #29 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(138): Illuminate\Queue\Worker->daemon() #30 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(121): Illuminate\Queue\Console\WorkCommand->runWorker() #31 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle() #32 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() #33 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure() #34 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod() #35 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call() #36 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call() #37 /var/www/html/app/releases/20230815200624/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute() #38 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\Component\Console\Command\Command->run() #39 /var/www/html/app/releases/20230815200624/vendor/symfony/console/Application.php(1081): Illuminate\Console\Command->run() #40 /var/www/html/app/releases/20230815200624/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand() #41 /var/www/html/app/releases/20230815200624/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun() #42 /var/www/html/app/releases/20230815200624/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run() #43 /var/www/html/app/releases/20230815200624/artisan(37): Illuminate\Foundation\Console\Kernel->handle() #44 {main}
I think its a problem with the connection, but I don't know if is a fcm problem or I'm doing something wrong. Someone can help?