Title: Warning hash_equals
Last modified: October 8, 2019

---

# Warning hash_equals

 *  ResolvedPlugin Contributor [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/warning-hash_equals/)
 * Hi,
    I get an error in my logs since I test your plugin (php 7.3): `PHP Warning:
   hash_equals(): Expected known_string to be a string, null given in /mysite/wp-
   includes/pluggable.php on line 2328` Could you check ? Regards.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/warning-hash_equals/#post-12016247)
 * 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](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](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/warning-hash_equals/#post-12017811)
 * 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.
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/warning-hash_equals/#post-12019747)
 * 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](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/warning-hash_equals/#post-12023656)
 * It may be due to the call of this function `lasent_verify_nonce()` which is not
   done or which returns null.
 *  Plugin Contributor [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/warning-hash_equals/#post-12059048)
 * OK. No fix. Uninstalled plugin.
    Regards.
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/warning-hash_equals/#post-12059207)
 * There is no fix cause there is no bug.
    I advised you to disable the Nonce check.
 *  Plugin Contributor [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/warning-hash_equals/#post-12059816)
 * 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.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Warning hash_equals’ is closed to new replies.

 * ![](https://ps.w.org/la-sentinelle-antispam/assets/icon-256x256.png?rev=1932361)
 * [La Sentinelle antispam](https://wordpress.org/plugins/la-sentinelle-antispam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/la-sentinelle-antispam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/la-sentinelle-antispam/)
 * [Active Topics](https://wordpress.org/support/plugin/la-sentinelle-antispam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/la-sentinelle-antispam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/la-sentinelle-antispam/reviews/)

## Tags

 * [nonce](https://wordpress.org/support/topic-tag/nonce/)

 * 7 replies
 * 2 participants
 * Last reply from: [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/warning-hash_equals/#post-12059816)
 * Status: resolved