Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] www ERROR 805303f4

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joost de Valk


    It’s not random AT ALL.

    Let me explain: both and have their preference set to www in their WordPress settings. I know that because their homepage redirects from non-www to www. has it’s preference set to non-www.

    The WP SEO plugin uses the blog URL path to include the XSL stylesheet. Because of how XML and XSLT work, an XSLT file only applies to an XML file if it comes from the exact same domain, so if it’s linked from yet you’re opening under, it won’t work.

    It’s not a bug, it’s a (security) feature of XML 🙂

    I am having the same problem: Error loading stylesheet: An unknown error has occurred (805303f4)

    BUT I am using a CDN via W3 Total Cache

    How can I fix the problem?


    @yoast, Does this mean the stylesheet won’t work for those who move wp-content to a CDN or on a multisite install? How would one fix this?

    @mercadeoglobal, The sitemap is still there. Only the stylesheet is missing. To see your sitemap, view the page source. Bots can still access it

    Here is a hack if you are using CDN to host wp-content

    1. Copy xml-sitemap.xsl from your CDN to root domain
    Go to wordpress-seo folder and copy xml-sitemap.xsl from the ‘css’ folder to your root domain.

    2.Edit wp-seo.php
    In the wordpress-seo folder, open wp-seo.php with a text editor and define your root domain in full.

    define( 'WPSEO_FRONT_URL', $pluginurl );
    define( 'WPSEO_FULL_URL', '' );

    3. Edit class-sitemaps.php
    Open class-sitemaps.php with a text editor find and replace

    // default stylesheet
    		$this->stylesheet = '<?xml-stylesheet type="text/xsl" href="'.WPSEO_REAL_URL.'/xml-sitemap.xsl"?>';


    // default stylesheet
    		$this->stylesheet = '<?xml-stylesheet type="text/xsl" href="'.WPSEO_FULL_URL.'/xml-sitemap.xsl"?>';

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] www ERROR 805303f4’ is closed to new replies.