Minishlink / web-push-php-example

An example for sending Web Push notifications, using web-push-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GMP Extension

hacker-prime opened this issue · comments

I get the following error:
[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.

I uncommented it from both the development and production php.ini file and still get that error.

I solved the problem. It turns out I was modifying the wrong file.

https://shaynhacker.com/Web%20Push%20PHP.png

In the attached image/link above, the files in the red rectangle is what I was initially changing but the one that should be modified is the file in the green rectangle. After uncommenting the gmp extension I no longer got the error.