Thanks for reporting this, I’ll look into refactoring the constructor. Alternatively send me code and I’ll merge it then credit you as a contributor. Thanks.
I couldn’t find a github repo to make a PR.
Take a look at this for more information:
Deprecating PHP4 style constructors in WordPress 4.3
Greetings
derRALF
I had the same issue.
In wp-content/plugins/check-email/plugin-register.class.php I had to change:
// eehmke PHP7 compatibility
//function Plugin_Register() {
function __construct() {
In wp-content/plugins/check-email/check-email.php I had to change:
// eehmke the constructor has been called already by the new operator!
// $register->Plugin_Register();
Works fine for me.
-
This reply was modified 9 years, 3 months ago by
eehmke.
Hi Chris,
I ran SiteGround’s PHP Config tool (found within their SG Optimizer Plogin) to check PHP 7.0 Compatibility.
It reported back the following for your plugin:
Check Email See Errors:
FILE: /wp-content/plugins/check-email/plugin-register.class.php
——————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
——————————————–
35 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
Are you planning on making the changes for PHP7 compatibility ?
Was this fixed in the latest version of your plugin 0.5.5 ?