GMP support for browser push notifications using VAPID

Username (e.g. epiz_XXX) or Website URL


Error Message

[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.
Fatal error : Uncaught Error: Call to undefined function Minishlink\WebPush\gmp_init() in /home/vol1_5/

Other Information

Could you please enable GMP support on free hosting servers, it is needed for push notifications using VAPID (see GitHub - web-push-libs/web-push-php: Web Push library for PHP )

I’m sorry but anything that requires editing the php.ini script isn’t allowed. It contains settings from all users using the server.

Plus you aren’t allowed to send Push Notifications, as they are often used by spammers to bombard your computer.


To my knowledge, our servers don’t support HTTP/2 yet, which means you can’t use the WebPush API which this library relies on. I don’t know if GMP was disabled before or if it was only disabled with new PHP version being deployed this week. In any case, I’m sorry to say you cannot use this functionality here.


Probably yes it was related to the upgrade, as it worked couple of days ago when I tested it, I were able to send couple of test messages

OK, in that case I will take a look and see if the extension can be restored.

PS, about HTTP2 - maybe it is needed for websockets? I was talking about push via Google Cloud Services

By this is you mean OPENING websockets, you will not be able to, as websockets are disabled, but i’m not sure about that.

If you’re using an external service to push the notifications, that should work fine. Looking at the document of the web-push-php library, it seemed to imply it used the Web Push protocol, which is based on HTTP/2. It seems to be sort-of like websockets but not quite.

But if you’re not using that part and the notifications are handled by Google, then all should be fine.


Thank you, the gmp seems to be enabled again and the push can be sent!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.