• Hi,
    I have a 404 error on each of my site pages (/function.strpos) that I have traced back to a window’s live writer call originating from wp-includes. A previous thread has suggested adding

    <?php
    
    remove_action('wp_head', 'wlwmanifest_link');
    
    // other helper functions you might have, i.e.
    	$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
    		if (0 < $numposts) $numposts = number_format($numposts); 
    
    	$numcmnts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
    		if (0 < $numcmnts) $numcmnts = number_format($numcmnts);
    
    ?>

    to my functions.php file, which I have done in my child theme after closing out the existing code with a final ?>
    so it now reads

    <?php
    /*-------------------------------------------------------*/
    /* Run Theme Blvd framework (required)
    /*-------------------------------------------------------*/
    
    require_once ( TEMPLATEPATH . '/framework/themeblvd.php' );
    
    /*-------------------------------------------------------*/
    /* Start Child Theme
    /*-------------------------------------------------------*/
    
    // Start the party ...
    
    // Add stylesheet - Level 4, will get added after EVERYTHING
    themeblvd_add_stylesheet( 'custom_styles', get_stylesheet_directory_uri().'/assets/css/custom.css', 4 );
    
    /*disable rss*/
    remove_action('wp_head', 'feed_links', 2 );
    add_filter('post_comments_feed_link','bfr_disable_comments_feeds');
    function bfr_disable_comments_feeds() {
        return null;
    }
    
    ?>
    
    <?php
    
    remove_action('wp_head', 'wlwmanifest_link');
    
    // other helper functions you might have, i.e.
    	$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
    		if (0 < $numposts) $numposts = number_format($numposts); 
    
    	$numcmnts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
    		if (0 < $numcmnts) $numcmnts = number_format($numcmnts);
    
    ?>

    The problem is that this has not been successful, and I still see 404s for /function.strpos on each page. Any ideas what I could be doing wrong here would be much appreciated.

    The site is https://www.proofscience.com

  • The topic ‘404s from Windows Live Writer (wlwmanifest.xml) call’ is closed to new replies.