Topic: RSS Validation Issues?

0 Members and 1 Guest are viewing this topic.

December 04, 2009, 02:37 PM

Offline btmattocks

  • Newbie
  • *
  • Posts: 7
    • View Profile
Anyone else experiencing RSS validation issues? There seem to be some variable parsing issues with empty blogs and a pathing issue with atom. I hate code surfing trying to solve the problem (IANAProgrammer) anyone with any skills seeing the same thing?

http://www.feedvalidator.org/check.cgi?url=http://rentasmartguy.com/home/feed/#l82

December 04, 2009, 08:09 PM

Offline btmattocks

  • Newbie
  • *
  • Posts: 7
    • View Profile
So far, after exporting my current blogs and dropping the original tables, I've started from square 1. The out of the box installation fails RSS validation here: <atom:link href="http:///home/feed/" rel="self" type="application/rss+xml" />
The URI is badly formed - I'd fix it manually but I don't know where the feed is written.


December 04, 2009, 09:09 PM

Offline btmattocks

  • Newbie
  • *
  • Posts: 7
    • View Profile
Still Digging
wp_component_url - where is this function declared? Is the RSS url not parsing correctly?

 Is anyone else having this probelm?

December 04, 2009, 09:29 PM

Offline btmattocks

  • Newbie
  • *
  • Posts: 7
    • View Profile
The problem is here in  feed.php in the wp-includes directory.

function self_link() {
   $host = @parse_url(get_option('home'));
   $host = $host['host'];
   echo clean_url(
      'http'
      . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
      . $host
      . stripslashes($_SERVER['REQUEST_URI'])
      );
}

Here's my fix until you guys get around to telling me the right variable to put there

function self_link() {
   $host = @parse_url(get_option('home'));
   $host = $host['host'];
   echo clean_url(
      'http'
      . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
      . 'www.rentasmartguy.com'
      . stripslashes($_SERVER['REQUEST_URI'])
      );
}

December 04, 2009, 10:51 PM

Offline btmattocks

  • Newbie
  • *
  • Posts: 7
    • View Profile
More issues after that one got fixed and added a blog. Has this been tested? It's throwing errors in sh404sef and functions.php - any ideas?