Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress 2.8.2 destroys Yoast XML Sitemap


  • fewclicks
    Participant

    @fewclicks

    Buddypress outputs a empty row somewhere and this causes an error in validation of the xml sitemap. My guess is there is a php closing tag followed by a newline in one php file.

    Why do I think its buddypress?
    I deactivated all plugins and reactivated them one by one. After activating buddypress the xml error occurred

    This is the beginning of the sitemap (I hope the empty row at the beginning is visible)

    
    
    <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//-------/main-sitemap.xsl"?>
    <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    

    This is the error
    XML Parsing Error: XML or text declaration not at start of entity

Viewing 4 replies - 1 through 4 (of 4 total)

  • fewclicks
    Participant

    @fewclicks

    Am I the only one with this problem?

    Does someone know a good way to find the row?


    Henry Wright
    Moderator

    @henrywright

    My guess is there is a php closing tag followed by a newline in one php file.

    This is likely the cause. The next step is finding where. How do you know it’s a BuddyPress issue?


    fewclicks
    Participant

    @fewclicks

    I have deactivated all plugins (except of Yoast of course :P) and reactivated them one by one. The Error occurs as long as BuddyPress is activated.


    fewclicks
    Participant

    @fewclicks

    Nevermind. The empty line came from the bp-custom.php…

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar