Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, my site is receiving the same error message as benclintz above.
    When I click the Site Map Link in my footer, I get this error:

    Error loading stylesheet: An unknown error has occurred (805303f4) https://www.naturalpurebodycare.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl

    WordPress version 3.8.3
    Plugin version 4.0.4
    site url is https://www.naturalpurebodycare.com
    plug-in’s that we use are:
    WP Super Cache
    Wp Minify
    All in one SEO
    All in one WP Security
    Optimize Database After Deleting Revisions

    I would really appreciate any help to resolve this.

    @jessie33: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    Hi, how can I edit or delete my post? I see I have up to 60 minutes to do so. but there is no documentation about how to do that.

    We do not delete posts here under normal circumstances. Just post a new topic.

    Thread Starter benclintz

    (@benclintz)

    Hey Jessie33 and anyone else who is facing the same error.
    I was able to solve the error!
    Go to your Sitemap-core.php file located in your cpanel

    /wp-content/plugins/google-sitemap-generator/sitemap-core.php

    function GetDefaultStyle() {
    		$p = $this->GetPluginPath();
    		if(file_exists($p . "sitemap.xsl")) {
    			$url = $this->GetPluginUrl();
    			//If called over the admin area using HTTPS, the stylesheet would also be https url, even if the blog frontend is not.
    			if(substr(get_bloginfo('url'),0,5) !="https" && substr($url,0,5)=="https") $url="http" . substr($url,5);
    			return $url . 'sitemap.xsl';
    		}
    		return '';
    	}

    Remove the above code and add below code

    function GetDefaultStyle() {
    		$p = $this->GetPluginPath();
    		if(file_exists($p . "sitemap.xsl")) {
    			return '/wp-content/plugins/google-sitemap-generator/sitemap.xsl';
    		}
    		return '';
    	}

    For more step by step instructions you can read https://rosamundwo.com/2011/solved-google-xml-sitemap-stylesheet-error/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘An unknown error has occurred (805303f4)’ is closed to new replies.