MagpieRSS: Failed to fetch error

3.1k Views Asked by At

When my script parses an RSS feed from my local Apache server, it parses fine but when I upload script to the remote hosting server it gives the error:

Warning: Magpie RSS: Failed to fetch (url) and cache is off in magpierss-0.6/rss_fetch.inc

on line 231.

I have searched for possible answers and any suggestions are around enabling and changing cache lifetime. I think that is not the problem - it looks like the problem is with remote hosting Apache server or denied access to my host.

Can anyone help?

2

There are 2 best solutions below

0
Ian P. On BEST ANSWER

check that magpie can open the rss url. Usually with curl being enabled or allow_url_fopen on your server. Also make sure that magpie is able/allowed/permitted to create caching files (if any)

4
Shaun Hare On

This could be caused by a bad url, the server is busy or not having remote file access allowed in your host.

$errormsg = "Failed to fetch $url "; in source indicative of problem getting to host.

Try checking access from the remote host - if you have ssh & curl enabled just do curl (url)