开发者

MagpieRSS: Failed to fetch error

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?


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)


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜