Title: MagpieRSS: Failed to fetch http://site.org/word/?feed=rss2 (HTTP Response: )
Last modified: August 19, 2016

---

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

 *  [davve00](https://wordpress.org/support/users/davve00/)
 * (@davve00)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/magpierss-failed-to-fetch-httpsiteorgwordfeedrss2-http-response/)
 * 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???

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

## Tags

 * [Failed to fetch](https://wordpress.org/support/topic-tag/failed-to-fetch/)
 * [magpie](https://wordpress.org/support/topic-tag/magpie/)
 * [MagpieRSS](https://wordpress.org/support/topic-tag/magpierss/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [davve00](https://wordpress.org/support/users/davve00/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/magpierss-failed-to-fetch-httpsiteorgwordfeedrss2-http-response/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
