Resolved : Error loading stylesheet: An unknown error has occurred (805303f4) WordPress

It may possible after rebuilding the sitemap using Google XML Sitemaps plugin for your wordpress blog when you try to access sitemap.xml in your browser you may get following error.

Error loading stylesheet: An unknown error has occurred (805303f4)

http://www.domain.com/blog/wp-content/plugins/google-sitemap-generator/sitemap.xsl

just go to your Sitemap-core.php file located on following location in your FTP

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

Edit it

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

}

Replace it with following one

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 ”; edited by javadotnet.in*/

$p = $this->GetPluginPath();
if(file_exists($p . “sitemap.xsl”)) {
return ‘/wp-content/plugins/google-sitemap-generator/sitemap.xsl’;
}
return ”;
}

Please leave the feedback if any issues.

One Response to Resolved : Error loading stylesheet: An unknown error has occurred (805303f4) WordPress

  1. Keith Hecht says:

    This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more … good luck.




Leave a Reply

Your email address will not be published.


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>