WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. C0BALT
    Member
    Posted 3 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:

    http://www.gordhaukastennis.com/sitemap.xml
    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:

    http://zeneditorial.com/sitemap.xml
    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:

    http://soundbeingstudio.com/sitemap.xml
    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)

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Joost de Valk
    Member
    Plugin Author

    Posted 3 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
    Member
    Posted 2 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

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

    How can I fix the problem?

    ThankS

  4. maxbuxfiy
    Member
    Posted 2 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
    Member
    Posted 2 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.

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic