• 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 https://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('https://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', 'https://www.mysite.org/magpie/cache/');

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

  • The topic ‘MagpieRSS: Failed to fetch https://site.org/word/?feed=rss2 (HTTP Response: )’ is closed to new replies.