• Resolved DistrictOperator

    (@districtoperator)


    The Query Monitor plugin is showing a WF error when I load a page in the back end. The error is:

    Warning	
    
    unlink(/home/[my_root]/public_html/[my_site_folder]/wp-content/wflogs/template.0184184001677687223.tmp): No such file or directory
    
    wp-content/plugins/wordfence/lib/wordfenceClass.php:2208
    Plugin: wordfence
Viewing 1 replies (of 1 total)
  • Hi @districtoperator

    Thanks for reaching out!

    This is related to a check we usually do.

    We suppress the warning because it is expected to occur if the file does not exist, but Query Monitor can report suppressed warnings. Unlinking the file rather than checking if the file exists and then unlinking it is slightly faster and may prevent race conditions, so the warning should be ignored.

    I hope this helps!

    Thanks,

    Joshua

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning – related to a template file’ is closed to new replies.