• I get on:

        [file] => /home/tksjdntw/skillsandmore.org/wp-content/plugins/w3-total-cache/lib/Minify/Minify/Cache/File.php
        [line] => 56
    [message] => Warning (2): unlink(/home/domain/wp-content/cache/minify/287c0.js_meta_old): No such file or directory
    

    I think that is easy to fix with a check if the file exist before to an unlink to avoid this errors that are filling my log a lot.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I patched with:

            if( file_exists($path . '_old')) {
                @unlink($path . '_old');
    		}
    		if( file_exists($path . '_meta_old')) {
                @unlink($path . '_meta_old');
    		}
    Plugin Contributor gidomanders

    (@gidomanders)

    The checks are added, so they will be in the next release. Though the @ before the unlink function means PHP should ignore the errors, a feature that’s disabled on your server. For more information check here:
    https://php.net/manual/en/language.operators.errorcontrol.php

    bgdstr

    (@bogdanstratulat)

    Can we please have an update regarding this issue? Has everything been sorted out? If so, please feel free to close and mark this issue as resolved.

    Thank you for using W3 Total Cache.

    Kind regards!
    Bogdan S.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning on php on unlink files’ is closed to new replies.