• Hi, after getting infected by a malware, successfully cleaned, my scanner still giving these two errors when check for malwares:

    [Aug 07 15:32:24:1691415144.813800:1:error]?preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated (8192) File: /home/website/public_html/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 114

    [Aug 07 15:32:24:1691415144.810583:1:error]?Trying to access array offset on value of type bool (2) File: /home/website/public_html/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 114

    I’m running the website on CPanel 112 under Apache2 and PHP 8.1 – Wordfence Free

    I’ve tried to delete and reinstall Wordfence cleaning all using Assistant, but the error still there.

    Tried to downgrade PHP 7.4 too (since the first talk about deprecation).

    Hope someone could help, many thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @andreyo, thanks for reaching out to us about this.

    This isn’t a message we often see, but could be caused by a malformed URL or binary data that nearly matches the format of a URL, but we will need to determine that.

    Try enabling the debug mode at the bottom of Wordfence > Tools > Diagnostics, then email us a scan log when it finishes to wftest @ wordfence . com, which might help narrow down which file causes it. Let us know here when you’ve sent it and a partially redacted version of your domain (mys—.com) to help us find it.

    Thanks,
    Peter.

    Thread Starter Andreyo

    (@andreyo)

    Hi @wfpeter , thanks for the reply.

    I’ve just send the log to the address. The domain is techjo—–.it

    It’s a full root scan, so it contain all the website in the account, even the one that is not wordpress.

    Hello,

    I have this same question. Cleaned site, scan OKAY then when running 12 hours later it throws errors, Wasn’t giving these scan errors until today when I ran a scan again. It makes me wonder if there’s been malicious activity over the last 12 hours? I tried reverting PHP version just to see if that helped like Op said.. It does the same thing on 7.4 8.0 8.1 8.2

    [Aug 25 10:58:03:1692982683.510774:1:error]?preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated (8192) File: /home4/pi****o/public_html/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 114

    [Aug 25 10:58:03:1692982683.510219:1:error]?Trying to access array offset on value of type bool (2) File: /home4/p*****o/public_html/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 114

    [Aug 24 17:51:10:1692921070.208611:1:error]?<br /> <b>Deprecated</b>: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in <b>/home4/pi*****/public_html/wp-content/mu-plugins/endurance-page-cache.php</b> on line <b>862</b><br /> <br /> <b>Deprecated</b>: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in <b>/home4/pi******/public_html/wp-content/mu-plugins/endurance-page-cache.php</b> on line <b>862</b><br />

    I got rid of mu-plugins and it’s still trying to scan that dir :/

    Thanks

    Ive got a similar problem…..

    Wordfence Version 7.10.4 & php 8.1

    [Oct 03 08:04:22]? Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/an1n5zpeatge/public_html/xxxxxx.co.uk/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 2078 Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/an1n5zpeatge/public_html/xxxxxxxx.co.uk/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 2078

    Hi Andreyo,

    I have the exact same problem and do not managed to fix it, can you help please ?

    Thanks

    Same error, can you update the post asap?

    salvadorg

    (@salvadorg)

    Acabo de enviar un reporte al correo de este error. que me está dando en todas las paginas de mi web: milcursos24.com Deprecated: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in?/home/vahmgkoq/public_html/wp-content/plugins/elementor/core/experiments/manager.php?on line?166

    No soy desarrollador web cómo me pudieran ayudar a resolver esto.

    Saludos,

    Salvador G. Nu?ez

    We are getting the same error:


    preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated (8192) File: /home/cdecbesi/public_html/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 114

    and

    Trying to access array offset on value of type bool (2) File: /home/cdecbesi/public_html/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 114

    @wfpeter

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Passing null to parameter #2 ($subject) of type string is deprecated’ is closed to new replies.