web-push-php-example icon indicating copy to clipboard operation
web-push-php-example copied to clipboard

GMP Extension

Open hacker-prime opened this issue 3 years ago • 2 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.

hacker-prime avatar Mar 01 '22 04:03 hacker-prime

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.

hacker-prime avatar Mar 01 '22 15:03 hacker-prime