XF 2.2 ErrorException: [E_USER_WARNING] [WebPush] gmp extension is not loaded but is required for sending push notifications with payload or for VAPID

Erin Nicole

Member
I receive this error when I try to like a post. The like goes through but this displays.

3C65B239-9E3D-4D51-ABFE-9D5F647AF113.png

ErrorException: [E_USER_WARNING] [WebPush] gmp extension is not loaded but is required for sending push notifications with payload or for VAPID authentication. You can fix this in your php.ini. in src/vendor/minishlink/web-push/src/WebPush.php at line 82
Code:
XF::handlePhpError()
trigger_error() in src/vendor/minishlink/web-push/src/WebPush.php at line 82
Minishlink\WebPush\WebPush->__construct() in src/XF/Service/PushNotification.php at line 271
XF\Service\PushNotification->getWebPushObject() in src/XF/Service/PushNotification.php at line 130
XF\Service\PushNotification->sendNotifications() in src/XF/Service/PusherTrait.php at line 194
XF\Service\Alert\Pusher->push() in src/XF/Repository/UserAlert.php at line 165
XF\Repository\UserAlert->insertAlert() in src/XF/Repository/UserAlert.php at line 103
XF\Repository\UserAlert->alertFromUser() in src/XF/Reaction/AbstractHandler.php at line 192
XF\Reaction\AbstractHandler->sendReactionAlert() in src/XF/Repository/Reaction.php at line 203
XF\Repository\Reaction->insertReaction() in src/XF/Repository/Reaction.php at line 144
XF\Repository\Reaction->reactToContent() in src/XF/ControllerPlugin/Reaction.php at line 67
XF\ControllerPlugin\Reaction->actionToggleReaction() in src/XF/ControllerPlugin/Reaction.php at line 21
XF\ControllerPlugin\Reaction->actionReact() in src/XF/ControllerPlugin/Reaction.php at line 14
XF\ControllerPlugin\Reaction->actionReactSimple() in src/XF/Pub/Controller/Post.php at line 381
XF\Pub\Controller\Post->actionReact() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2351
XF\App->run() in src/XF.php at line 517
XF::runApp() in index.php at line 20

I have no idea what is causing this issue.
 

Shinalife

Member
hi guys, I got this error, is it the same?

Error: Call to undefined method ErrorException::getRequest() in src/vendor/minishlink/web-push/src/WebPush.php at line 180
  1. Minishlink\WebPush\WebPush->Minishlink\WebPush\{closure}() in src/vendor/guzzlehttp/promises/src/RejectedPromise.php at line 42
  2. GuzzleHttp\Promise\RejectedPromise::GuzzleHttp\Promise\{closure}() in src/vendor/guzzlehttp/promises/src/TaskQueue.php at line 48
  3. GuzzleHttp\Promise\TaskQueue->run() in src/vendor/guzzlehttp/promises/src/Promise.php at line 248
  4. GuzzleHttp\Promise\Promise->invokeWaitFn() in src/vendor/guzzlehttp/promises/src/Promise.php at line 224
  5. GuzzleHttp\Promise\Promise->waitIfPending() in src/vendor/guzzlehttp/promises/src/Promise.php at line 62
  6. GuzzleHttp\Promise\Promise->wait() in src/vendor/minishlink/web-push/src/WebPush.php at line 185
  7. Minishlink\WebPush\WebPush->flush() in src/XF/Service/PushNotification.php at line 206
  8. XF\Service\PushNotification->handleResults() in src/XF/Service/PushNotification.php at line 176
  9. XF\Service\PushNotification->sendNotifications() in src/XF/Service/PusherTrait.php at line 194
  10. XF\Service\Alert\Pusher->push() in src/XF/Repository/UserAlert.php at line 165
  11. XF\Repository\UserAlert->insertAlert() in src/XF/Repository/UserAlert.php at line 103
  12. XF\Repository\UserAlert->alertFromUser() in src/XF/Reaction/AbstractHandler.php at line 192
  13. XF\Reaction\AbstractHandler->sendReactionAlert() in src/XF/Repository/Reaction.php at line 203
  14. XF\Repository\Reaction->insertReaction() in src/XF/Repository/Reaction.php at line 144
  15. XF\Repository\Reaction->reactToContent() in src/XF/ControllerPlugin/Reaction.php at line 67
  16. XF\ControllerPlugin\Reaction->actionToggleReaction() in src/XF/ControllerPlugin/Reaction.php at line 21
  17. XF\ControllerPlugin\Reaction->actionReact() in src/XF/ControllerPlugin/Reaction.php at line 14
  18. XF\ControllerPlugin\Reaction->actionReactSimple() in src/XF/Pub/Controller/Post.php at line 381
  19. XF\Pub\Controller\Post->actionReact() in src/XF/Mvc/Dispatcher.php at line 352
  20. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
  21. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  22. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  23. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2352
  24. XF\App->run() in src/XF.php at line 524
  25. XF::runApp() in index.php at line 20
 
Top