Hello all,
The PHP4-style constructor has been deprecated, and will pass a warning in WordPress 4.3+.
This is, however, only a warning. The plugin should still work. If it does not work, you may have another problem.
There are two options here: (1) silence the warning, (2) fix the problem yourself by altering the plugin’s code until the plugin developers fix the issue.
1. To silence the warning, simply disable WP_Debug
by setting it to false
in your wp-config.php file. This is not a fix, just silencing the issue. In my opinion you shouldn’t have this enabled on a live site anyway, it’s really only for development.
NOTE: This will work for most most places the error message will appear, however it’s possible it will still show up in other locations. If that’s the case you cannot silence the error without fixing it.
2. You could update line ~50 of wysija_nl.php from a PHP4-styled constructor:
$this->WP_Widget( $namekey, $title, $params,$sizeWindow );
to a PHP5-styled constructor:
parent::__construct( $namekey, $title, $params,$sizeWindow );
I haven’t tested the fix yet, beyond just getting it to silence the error itself. This will be overwritten the next time this plugin file is updated by the developer and you run updates.
Just for emphasis: I have not tested the code replacement yet. If you’re going to do this you need to thoroughly test before expecting it to work. I know it silences the error, and I know that the plugin still seems to work, but I’ve only done it myself about 10 minutes before writing this.
If you rely on this plugin it may be easier to roll back to WordPress 4.2.4.