• Hello,

    my php log is full with these two lines:

    PHP Warning: stristr(): Empty needle in /.../wp-content/plugins/w3-total-cache/lib/Minify/Minify/HTML.php on line 162
    
    PHP Warning: stristr(): Empty needle in /.../wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 36

    I think it’s sufficient something like this in both files:

    from:
    
    if (stristr($comment, $ignoredComment) !== false) {
    
    to:
    
    if ($ignoredComment && stristr($comment, $ignoredComment) !== false) {

    please, can you confirm this?
    thank you

    ps: I’m using W3TC 0.9.4.1

    https://www.ads-software.com/plugins/w3-total-cache/

  • The topic ‘PHP warning: stristr(): empty needle’ is closed to new replies.