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

    (@joostdevalk)

    It’s not random AT ALL.

    Let me explain: both zeneditorial.com and soundbeingstudio.com have their preference set to www in their WordPress settings. I know that because their homepage redirects from non-www to www. gordhaukastennis.com 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 http://www.example.com yet you’re opening under example.com, 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

    http://cdn.mercadeoglobal.com/blog/wp-content/plugins/wordpress-seo/css/xml-sitemap.xsl

    How can I fix the problem?

    ThankS

    maxbuxfiy

    (@maxbuxfiy)

    @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

    maxbuxfiy

    (@maxbuxfiy)

    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.

    Example:
    Below
    define( 'WPSEO_FRONT_URL', $pluginurl );
    Add
    define( 'WPSEO_FULL_URL', 'http://example.com' );

    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"?>';

    With

    // 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.