• Resolved Daniel15

    (@daniel15)


    I get these messages every time I run a scan:

    Sep 19 13:12:12] preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead (8192) File: /var/www/example.com/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 53
    [Sep 19 13:12:12] preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead (8192) File: /var/www/example.com/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 49

    The /e modifier in preg_replace is deprecated as of PHP 5.5 for security reasons, and you should modify the code to use preg_replace_callback instead.

    https://www.ads-software.com/plugins/wordfence/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wordfence Security

    (@mmaunder)

    Thanks I’ve logged this issue and it’ll be fixed in the next release.

    Regards,

    Mark.

    This is an issue again.
    [Dec 22 21:50:31:1387767031.990222:1:error] preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead (8192) File: /srv/www/accountproductions.com/public_html/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 56

    I can confirm that I have the same issue hundreds of times during a scan:

    [Dec 23 13:42:19:1387806139.150348:1:error] preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead (8192) File: /***/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 56
    [Dec 23 13:42:19:1387806139.149892:1:error] preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead (8192) File: /***/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 52

    Yes. My scans are spammed that during it. I have emailed him about it with a full log.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deprecated preg_replace usage’ is closed to new replies.