simple fix for Joomla rss (com_ninjarssyndicator) blank line issue.

Like many we experienced the blank line issue within the Joomla RSS ninja syndicator. The effect of this blank line is that it is not being recognized by rss parsers. To overcome this little issue without needing to hack all the joomla plugin source files in search of this blank line i simply wrote a little PHP script that removes this first line if its there, else it will simply output the rss.

I used this broken company training feed  and fixed it using php. You can view them here.

The script to fix it is shown below. Simply alter the urls and paste it inside a php file somewhere on your webserver.

// Very simple script to clean the blankline from an RSS FEED.
$default = 2; // Default feed id.

      $index = $_GET{'id'};
      $index = $default;
   $index = $default;

$url = 'http://www.domain.ext?option=com_ninjarsssyndicator&feed_id='.$index.'&format=raw';

if($lines = file($url)){
   foreach($lines as $n => $l){
     if(ord($l) != '10'){
       echo "$l";

2 thoughts on “simple fix for Joomla rss (com_ninjarssyndicator) blank line issue.

  1. Hi itoctopus,

    Simply create a new file in the root directory. Just make sure you dont overwrite any of the existing files.

    I have updated to code to make it more secure still and more usable.

    Rgrds, Chris

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s