Coretan Situs dan Blog

Mengatasi Sitemap Error Pada Plugin Google Sitemap Generator

29 December 2011

Penggunaan Sitemap pada website sangat penting karena memudahkan bagi bot search engine untuk mengenali halaman-halaman website. Bagi pengelola weblog berbasis wordpress penggunaan plugin Google Sitemap Generator mungkin sudah tidak asing lagi, karena tidak perlu lagi buat dan upload sitemap secara manual.

Namun kadang terjadi error saat mengakses Error yang umum dan sering terjadi seperti muncul pesan seperti ini :

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

Untuk mengatasi buka edit  file Sitemap-core.php yang ada di plugin Google Sitemap Generator.
Cek kode dibawah ini :

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

Hapus kode tersebut dan ganti dengan kode :

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

Silahkan cek sitemap.xml pada blog Anda contoh :

Semoga bermanfaat.


You Might Also Like


  • Reply isnuu 1 April 2012 at 17:59

    om kok masih sama aja error ya? need pencerahan

    • Reply Stew 7 June 2017 at 07:55

      You are so right, Rosie. They may look calm in pictures but nobody knows the pain in their hearts standing there wonenridg their next step in helping their gay family members. Ironic that cowards are standing up as champions to persecute those who are truly brave indeed.

  • Reply I Putu Sumahendra 18 April 2014 at 13:35

    Gak mempan juga gan…
    ada solusi lain?

  • Reply Lily 3 January 2017 at 15:09

    É verdade, alguma coisa. O Palmeiras vendeu ? Vendeu. Deve cair para a B.O Santos vendeu,? Vendeu. Vai ter vaga na sulamericana.o São Paulo vendeu ? Vendeu. Deve ir para a prr©alibert-doÃes.O Corinthians vendeu ? Não. Foi campeão da Libertadores e vai ao mundial do Japão.Essa é a diferença. Simples assim.

  • Reply http://www./ 1 March 2017 at 06:16

    That’s a quick-witted answer to a difficult question

  • Reply 24 May 2017 at 18:54

    I’m really enjoying the theme/design of your website. Do you ever run into any browser compatibility problems? A handful of my blog audience have complained about my blog not working correctly in Explorer but looks great in Firefox. Do you have any solutions to help fix this issue?

  • Leave a Reply