Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] www ERROR 805303f4 (5 posts)

  1. C0BALT
    Posted 5 years ago #

    I don't know why randomly www prefix works and sometimes it works only without the www .

    Am I doing something stupid?
    Do I need to be very explicit with WWW or non WWW?
    Where would I change these settings?

    sample 1:

    Error loading stylesheet: An unknown error has occurred (805303f4)http://gordhaukastennis.com/wp-content/plugins/wordpress-seo/css/xml-sitemap.xsl

    http://gordhaukastennis.com/sitemap.xml (THIS WORKS FINE)

    sample 2:

    Error loading stylesheet: An unknown error has occurred (805303f4)http://www.zeneditorial.com/wp-content/plugins/wordpress-seo/css/xml-sitemap.xsl

    http://www.zeneditorial.com/sitemap.xml (THIS WORKS FINE)

    sample 3:

    Error loading stylesheet: An unknown error has occurred (805303f4)http://www.soundbeingstudio.com/wp-content/plugins/wordpress-seo/css/xml-sitemap.xsl

    http://www.soundbeingstudio.com/sitemap.xml (THIS WORKS FINE)


  2. Joost de Valk
    Plugin Author

    Posted 5 years ago #

    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 :)

  3. mercadeoglobal
    Posted 4 years ago #

    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?


  4. maxbuxfiy
    Posted 4 years ago #

    @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

  5. maxbuxfiy
    Posted 4 years ago #

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


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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic