Coretan Situs dan Blog

Mengatasi Sitemap Error Pada Plugin Google Sitemap Generator

29 December 2011
sitemap

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

http://yohansalman.com/sitemap.xml

Semoga bermanfaat.

You Might Also Like

22 Comments

  • Reply isnuu 1 April 2012 at 17:59

    om kok masih sama aja error ya? need pencerahan

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

    Gak mempan juga gan…
    ada solusi lain?

  • Reply Stafa 19 August 2017 at 06:00

    Thanks you om, berhasil

  • Reply unduhlagu 6 November 2017 at 21:00

    Thank you sir
    your post is very helpful

  • Reply Skull 10 November 2017 at 13:52

    Wah ternyata cuman begitu, thanks gan

  • Reply Stafabandel 15 November 2017 at 14:14

    Ilmu yg sangat bermanfaat 🙂

  • Reply Stafa 14 January 2018 at 09:42

    Wah berhasil gan, terima kasih

  • Reply Stafa 18 January 2018 at 00:13

    makasih gan

  • Reply Stafa 18 January 2018 at 00:16

    makasih

  • Reply bursa lagu 16 February 2018 at 08:12

    thanks

  • Reply Mustika lagu terbaru 16 February 2018 at 08:12

    makacih

  • Reply tianglagu 19 February 2018 at 13:21

    good job

  • Reply situs mp3 14 May 2018 at 20:27

    akhrinya ktmu cra ngtasinnya

  • Reply stafaband 12 October 2018 at 04:28

    mantap banget

  • Reply lagu mp3 14 October 2018 at 10:38

    halo bro

  • Reply stafaband 15 October 2018 at 18:12

    thanks bro nice ahe

  • Reply kay 19 October 2018 at 09:58

    mp3 disini gays Dairilagu

  • Reply stafaband 29 October 2018 at 22:09

    thanks bro i like it

  • Reply waptrick musik 29 October 2018 at 22:10

    i like it bro jok

  • Reply gudang mp3 29 October 2018 at 22:10

    i like it bro jok neh

  • Reply lagu gratis 31 October 2018 at 14:10

    wow mantap gan

  • Reply Stafa Band 8 November 2018 at 21:51

    Terima kasih banyak tutornya gan

  • Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.