Support » Plugin: Simple Wp Sitemap » XML Sitemap Error

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Webbjocke


    Hi I looked at your link and it seems like something is printing some empty rows at the top of the page, which is not allowed for xml.

    My guess is that it’s some plugin doing this, so if you tell me which ones you’re using I’ll look it up. Does the error disappear if you try and disable some of them?

    Hi, thanks for reply.I disabled all plugins but still the same error.

    Strange thing is, even though I am getting this error but when submitted to Google & Bing webmaster, they are able to read it as tells me how many links are submitted in sitemap. (I think it works in IE though).

    I am using Expedia Support Plugin, GZip Ninja Speed Compression, Material Admin Theme, Page Links To, WordPress HTTPS, WordPress Importer, Yoast SEO (with sitemap disabled).


    Plugin Author Webbjocke


    Ok ty for the info. The plugins wasn’t the problem.

    Yeah that’s strange. Maybe they don’t really care if it’s valid, just as long as the links are there heh.

    Anyway then the empty rows probably come from an error printing out that gets “hided”. Are you comfortable with code? In the file wp-config.php in your sites “root folder” there’s a line saying: define(’WP_DEBUG’, false). Try and change false to true there and then reload the sitemap, if there now are some errors showing up we’ll know what the problem is. Btw don’t forget to change back to false once you’ve tested.

    Otherwise sorry I don’t know. Maybe try to uninstall and reinstall the plugin and see if that could do the trick. Good luck

    Hi, I did as you said. Gave error:
    Undefined variable: lang in /home/****/functions.php on line 98

    Went to check and found line 98 was empty & was between
    (Line 97) $theme = new Theme();
    (Line 98)
    (Line 99) $theme->init(array(

    Hence when back to change debug value to false. And you know what, WordPress is full of surprises. After refreshing xml sitemap, it started working perfect.

    Thanks for your help.

    Plugin Author Webbjocke


    Right well great then! Yeah it sure is.

    Np happy to help 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘XML Sitemap Error’ is closed to new replies.