Minishlink / web-push-php-example

An example for sending Web Push notifications, using web-push-php
MIT License
252 stars 89 forks source link

GMP Extension #29

Open hacker-prime opened 2 years ago

hacker-prime commented 2 years ago

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.

hacker-prime commented 2 years ago

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.