Title: BDP RSS foreach error
Last modified: August 19, 2016

---

# BDP RSS foreach error

 *  [4k](https://wordpress.org/support/users/4k/)
 * (@4k)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/bdp-rss-foreach-error/)
 * I have been using this plugin on 3 sites without issue. But now when I create
   a new feed page I get this error;
 * `Warning: Invalid argument supplied for foreach() in /home/jmscott/public_html/
   netroots/wp-content/plugins/bdprss/bdp-rss-output.php on line 156`
 * I have emailed the plugin author without success and wondered if anyone else 
   had a suggestion as to what I need to fix.
 * You can see the error here [http://netroots.ca/?page_id=27](http://netroots.ca/?page_id=27)

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

 *  Thread Starter [4k](https://wordpress.org/support/users/4k/)
 * (@4k)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/bdp-rss-foreach-error/#post-693197)
 * If anyone else runs into this issue this is how I solved it.
 * (and may I take a moment to say; GO ME!! 😉 )
 * find in bdp_rss_output.php
 *     ```
       // map the acceptable tags
       			$tagSet = '';
       			if($keepTagSet)
       			{
       				$kts = preg_split("','", $keepTagSet, -1, PREG_SPLIT_NO_EMPTY);
       				foreach($kts as $t)
       				{
       					if(!$t) continue;
       					$u = $bdprssTagSet[$t];
       					foreach($u as $v)
       						$tagSet .= "$v,";
       				}
       			}
       ```
   
 * and change to
 *     ```
       // map the acceptable tags
       			$tagSet = '';
       			if($keeptagSet)
       			{
       				$kts = preg_split("', '", $keeptagSet, -1, 
   
       PREG_SPLIT_NO_EMPTY);
       				foreach($kts as $t)
       				{
       					if(!$t) continue;
       					$u = $bdprssTagSet[$t];
       					foreach($u as $v)
       						$tagSet .= "$v,";
       				}
       			}
       ```
   
 *  [Lynn](https://wordpress.org/support/users/artsmo/)
 * (@artsmo)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/bdp-rss-foreach-error/#post-693437)
 * Go you!
 * Thank you, 4K!

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

The topic ‘BDP RSS foreach error’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [Lynn](https://wordpress.org/support/users/artsmo/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/bdp-rss-foreach-error/#post-693437)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
