Solutions to common problems
For better performance we recommend enabling the
gmp extension (GNU Multiple Precision).
In Ubuntu you would do:
sudo apt-get install php7.2-gmp # then restart apache with sudo service apache2 restart # or php-fpm (nginx) sudo service php-fpm restart
This happens if you have PHP <= 7.2 and miss the
gmp extension. Perfecty Push will be disabled until you install the
gmp extension or generate the keys manually.
Follow the instructions above, and then deactivate/activate the plugin from the WordPress plugin UI. This will generate the keys automatically for you.
From your WordPress server run:
openssl ecparam -genkey -name prime256v1 -out private_key.pem openssl ec -in private_key.pem -pubout -outform DER|tail -c 65|base64|tr -d '=' |tr '/+' '_-' > public_key.txt openssl ec -in private_key.pem -outform DER|tail -c +8|head -c 32|base64|tr -d '=' |tr '/+' '_-' > private_key.txt cat private_key.txt cat public_key.txt
Once you've created the keys, set those values in Perfecty Push > Settings > Vapid Private Key / Vapid Public Key.
However, the recommended solution is to install and enable the
This is due to two reasons:
- You use PHP 7.2 and you didn't have the
gmpextension enabled, however now you have it.
- You have deleted the VAPID keys from the Settings.
In any case, you can generate them automatically by deactivating/activating your plugin from the WordPress plugin UI (this won't remove your data).
Read the section Conflict Resolution