Support » Fixing WordPress » What does 'function split () is deprecated in rss.php' mean?

  • I’m developing locally and have php alerts switched on. In this case, however, this alert might have something to do with the equivalent live page not loading properly.

    The message, which is repeated many times, is:

    Deprecated: Function split() is deprecated in /var/www/wordpress/wp-includes/rss.php on line 104

    The only thing I can glean from searches is that is has something to do with finding urls, which makes sense because I’m trying to import external RSS feeds, specifically Yahoo Pipes created feeds. The code I’m using is thus:

    <div class="leftbox">
            <h1>Latest Headlines</h1>
    			 <p class="body">
              <?php require_once (ABSPATH . WPINC . '/rss-functions.php');
    				$url = 'http://pipes.yahoo.com/pipes/pipe.run?_id=4cd6162ea0e737ab94914945ef823ea0&_render=rss';
    				$rss = fetch_rss( $url );
    				if ( $rss ) {
    				$i = 1;
    				foreach ($rss->items as $item) {
    				$href = $item['link'];
    				$title = $item['title'];
    				$description = $item['description'];
    				$pubdate = $item['pubdate'];
    				$pubdate = substr($item['pubdate'], 0, 16);
    				echo "<p class='body'><h1><a href="$href">$title</a></h1>$pubdate$description<a href="$href">[link to article]</a></p>";
    				if ($i == 5 ) break;
    				$i = $i + 1;
    				}
    				}
    		?>
    			 </p>
            </div>

    Does anyone have any clues as to what’s going on here? Thanks in advance.

Viewing 1 replies (of 1 total)
  • In the file rss.php (/var/www/wordpress/wp-includes/rss.php), change the line:
    list($ns, $el) = split( ':', $element, 2);
    on this line:
    list($ns, $el) = explode( ':', $element, 2);

Viewing 1 replies (of 1 total)
  • The topic ‘What does 'function split () is deprecated in rss.php' mean?’ is closed to new replies.