Forums

MagpieRSS: Failed to fetch http://site.org/word/?feed=rss2 (HTTP Response: ) (1 post)

  1. davve00
    Member
    Posted 3 years ago #

    Hmm... Im getting this Magpie error when trying to load my page... The strange thing is, that if I hit reload then I will see my parsed rss feed...

    MagpieRSS: Failed to fetch http://mysite.org/word/?feed=rss2 (HTTP Response: )

    The code im using to grab the rss is:

    <?php include('magpie/rss_fetch.inc');
    
    error_reporting(E_ERROR);
    
    $rss = fetch_rss('http://mysite.org/word/?feed=rss2');
    if ($rss) {
      $items = array_slice($rss->items, 0, 5);
      foreach ($items as $item )
     {   echo '<li><a href="'.$item['link'].'">'.$item['title'].'</a> - '.date("j M", strtotime($item['pubdate'])).'</li>';  }
    }
    else
    {
      echo '<h2>Error:</h2><p>'.magpie_error().'</p>';
    }
    // Restore original error reporting value
    @ini_restore('error_reporting');
    ?>

    can it be cache related?? Becouse I have been experimenting with the cache dir, cus it didnt update immediately, so i changed the cache dir in fetch.inc to, and then updated it immediately...

    define('MAGPIE_CACHE_DIR', 'http://www.mysite.org/magpie/cache/');

    Please, is there anyone who has a clue???

Topic Closed

This topic has been closed to new replies.

About this Topic