It was W3 plugin issue.
I change the path of the file, I created new them in the themes root to avoid file deletion on theme update.
function override_templates( $tpl ) {
//echo get_theme_root() . "/wpadverts/";
$dirs = array();
// first check in child-theme directory
$dirs[] = get_stylesheet_directory() . "/wpadverts/";
// next check in parent theme directory
$dirs[] = get_theme_root() . "/wpadverts/";
// if nothing else use default template
$dirs[] = ADVERTS_PATH . "/templates/";
// use absolute path in case the full path to the file was passed
$dirs[] = dirname( $tpl ) . '/';
$basename = basename( $tpl );
foreach($dirs as $dir) {
if( file_exists( $dir . $basename ) ) {
return $dir . $basename;
}
}
}
Thanks,