-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: Call to a member function post() on null in Client.php 62 #28
Comments
Are you sure you are following the example and setting a GuzzleHttp Client via |
is anyone there for this solution i am also getting same problem ? Fatal error: Uncaught Error: Call to a member function post() on null in /home/magentoo/public_html/vendor/sngrl/php-firebase-cloud-messaging/src/Client.php:62 Stack trace: #0 |
@sumeetbajaj51
If you are still having issues even with including this, please share your code for review. |
@Demonslay335 namespace sngrl\PhpFirebaseCloudMessaging;
|
I have also got this error |
@shiyasVp |
Does anyone got solutions for this? its been long since the issue is notified but no relevant action as been taken why? |
@koushikch7 As the documentation examples show, you need to inject your own Guzzle instance. If an instance is not injected, it is default $client->injectGuzzleHttpClient(new \GuzzleHttp\Client()); |
in line 62, it is guzzleHttp object. But it is null
Fatal error: Uncaught Error: Call to a member function post() on null in /var/www/html/magento2/vendor/sngrl/php-firebase-cloud-messaging/src/Client.php:62 Stack trace: #0
i am using this in Magento 2 Progressive Web app plugin by tigren
The text was updated successfully, but these errors were encountered: