Forums

[Plugin: Podcast channels] Error in XML missing argument (7 posts)

  1. roghow
    Member
    Posted 9 months ago #

    Hi,
    When I validate my XML feed there is an error generated. This is he:

    " <title>Show 010</title>
    <link>http://robotronicradio.com/wordpress/4by4/show-010/</link>
    <comments>http://robotronicradio.com/wordpress/4by4/show-010/#comments</comments>
    <pubDate>Tue, 13 Jan 2009 17:21:25 +0000</pubDate>
    <dc:creator>DJ How</dc:creator>

    <b>Warning</b>: Missing argument 2 for podcast_channels_category_rss() in <b>/home/rogerhow/public_html/wordpress/wp-content/plugins/podcast-channels/podcast-channels.php</b> on line <b>497</b>

    It seems to have trouble with the" $type " argument in this function of the php (It's on line 497):

    "add_filter('the_category_rss', 'podcast_channels_category_rss',2);
    function podcast_channels_category_rss($the_list, $type)
    { global $podcast_channel_active;
    if ($podcast_channel_active===false) return;"

    I'm not very good at working out what is going on here. I can't find any other references to this problem so I'm a bit lost.

    Any help much appreciated.

    http://wordpress.org/extend/plugins/podcast-channels/

  2. roghow
    Member
    Posted 9 months ago #

    A bit more detail....

    I'm using the plugin on a category level only to generate my XML.

  3. alanft
    Member
    Posted 9 months ago #

    WOW, yes you are right. will get on that. i wonder how come i never noticed that til now :-(

  4. roghow
    Member
    Posted 9 months ago #

    Great. Thanks!!

  5. alanft
    Member
    Posted 9 months ago #

    line 497 needs to be changed to

    add_filter('the_category_rss', 'podcast_channels_category_rss',10,2);

    will add that to the dev version soon, and maybe even do a minor version update too.

    no idea how this bug has stayed in there so long - it should have been caught by feed validation ages ago!

  6. alanft
    Member
    Posted 9 months ago #

    and now i see another bug on line 483 too, so i will attend and get this released properly.

    thanks for bringing these to my attention

  7. alanft
    Member
    Posted 9 months ago #

    both fixes now in the recent minor update BTW

Reply

You must log in to post.

About this Topic