Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting deprecated error with Simplepie
    primarykey
    data
    text
    <p>I have installed the latest Simplepie code (1.2.1) and I am using the demo code they provide:</p> <pre><code>&lt;?php require 'simplepie.inc'; $url = 'http://news.google.com/news?ned=us&amp;topic=h&amp;output=rss'; $feed = new SimplePie(); $feed-&gt;set_feed_url($url); $feed-&gt;init(); // default starting item $start = 0; // default number of items to display. 0 = all $length = 0; // if single item, set start to item number and length to 1 if(isset($_GET['item'])) { $start = $_GET['item']; $length = 1; } // set item link to script uri $link = $_SERVER['REQUEST_URI']; // loop through items foreach($feed-&gt;get_items($start,$length) as $key=&gt;$item) { // set query string to item number $queryString = '?item=' . $key; // if we're displaying a single item, set item link to itself and set query string to nothing if(isset($_GET['item'])) { $link = $item-&gt;get_link(); $queryString = ''; } // display item title and date echo '&lt;a href="' . $link . $queryString . '"&gt;' . $item-&gt;get_title() . '&lt;/a&gt;'; echo ' &lt;small&gt;'.$item-&gt;get_date().'&lt;/small&gt;&lt;br&gt;'; // if single item, display content if(isset($_GET['item'])) { echo ' &lt;small&gt;'.$item-&gt;get_content().'&lt;/small&gt;&lt;br&gt;'; } echo '&lt;br&gt;'; } ?&gt; </code></pre> <p>However, when I load the page in my browser, I get dozens of lines saying:</p> <pre><code>Deprecated: Assigning the return value of new by reference is deprecated in /home/pliggs/public_html/rss/simplepie.inc on line 7722 </code></pre> <p>Anyone know what's wrong?</p> <p>I ran their compatibility test and it shows all things have passed.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload