I don’t understand the error. I don’t see it happening on my PHP 7.3 install.
Looking at this code:
https://plugins.trac.wordpress.org/browser/la-sentinelle-antispam/trunk/spamfilters/lasent-nonce.php#L105
The variable $expected cannot be null I would think. The function wp_hash should return an md5sum of 32 characters, of which 10 characters get used.
Could it be you are overwriting the wp_hash function somewhere?
Plugin Contributor
Bonaldi
(@bonaldi)
Hi,
I do not think so because it only happens on the sites with your plugin and since its installation. Something does not work properly.
I hope you find the source of the problem, it would annoy me to have to uninstall it.
Regards.
I don’t think the problem is in the plugin, at least I don’t see anything wrong.
What you can do is disable the Nonce in the settings, then everything should be fine. The Nonce was a mistake anyway 🙂 The two other filters are much more effective.
By the way, on a production website you should not have warnings and notices. You might want to disable them in the PHP settings.
Plugin Contributor
Bonaldi
(@bonaldi)
It may be due to the call of this function lasent_verify_nonce() which is not done or which returns null.
Plugin Contributor
Bonaldi
(@bonaldi)
OK. No fix. Uninstalled plugin.
Regards.
There is no fix cause there is no bug.
I advised you to disable the Nonce check.
Plugin Contributor
Bonaldi
(@bonaldi)
Hi,
That is your opinion.
I disabled the nonce check and it did not change anything.
I found that the problem was only on sites where your plugin was installed.
Deduce the logical consequences.
I uninstalled it on all these sites and I have no more error in logs.
So you can pass this post as resolved, as you did, but for me it’s not.
Too bad.