Thread Starter
moi027
(@moi027)
My wordpress version is 4.7.2
Hello,
we use this PHP code:
const MIN_PHP_REQUIRED = '5.3.0';
if (version_compare(PHP_VERSION, self::MIN_PHP_REQUIRED, '<')) {
// Show user to upgrade their PHP version
}
you can find more info here on the official documentation of PHP.
As it’s a standard PHP function we can exclude it’s a bug, maybe there’s something wrong on your server configuration.
Try this plugin to display the PHP version.
Thread Starter
moi027
(@moi027)
Hello,
My version was 5.2.17, I changed const MIN_PHP_REQUIRED = ‘5.3.0’; to const MIN_PHP_REQUIRED = ‘5.2.17’;.
And now, all is working fine.
Thanks
As written in the documentation, Push Notifications for WordPress requires at least PHP 5.3. If you use it with older versions, it does not work properly. Changing the check unfortunately is not a solution. We therefore recommend you to upgrade the PHP version you are using. Hope it helps!