Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter frobenius

    (@frobenius)

    The thing is this: with a trailing slash I get a blank line. Without the trailing slash I don’t get the blank line. Of course it’s not the slash causing the problem, but the pages are processed differently when the slash is part of the url. Some page is being called when there IS a slash that is NOT being called when there ISN’T a slash. It’s not a plugin because when I disabled them I had the same results. It’s pretty much a straight build, so I don’t believe there are stray linefeeds that have been added after the install. This seems to be a common problem with WordPress that defies a simple explaination. So … where’s that line coming from, anyway?

    We are having the same exact problem with out wp 1.5.1.3 build. The RSS feed’s XML begins with a spurious blank line. It’s not the themes and it’s not the plugins. Here is a big clue (and this just might help some other WordPress sites) – If the rss2 php module is called directly, like so:

    http://www.valenceband.com/wp/wp-rss2.php

    ….there is no blank line in the generated XML.

    But if the link to the RSS feed uses the ” bloginfo(‘rss2_url’); ” link generator, like this:

    http://www.valenceband.com/wp/feed/

    …a blank line is generated. If the link did not have the trailing slash, like so:

    http://www.valenceband.com/wp/feed

    …no blank line.

    So … what’s really happening here? It’s something to do with the permalinks! I have traced the code to the get_feed_link function in wp-includes/template-functions-links.php. Something in that code generates an extra slash, but I’m not a php expert. Maybe it depends on how a site has configured the permalink settings. Perhaps someone else could have a look at this and figure it out?

    Removing the permalink settings solves the problem, of course, but who wants to do that?

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