问题描述
我建立了两个 Wordpress 开发站点,URL 类似于 mysite.com/dev/blog1 和 mysite.com/dev/blog2.blog2 将使用 fetch_feed() 从 blog1 上的类别中获取帖子,例如fetch_feed(mysite.com/dev/blog1/category/fun/feed) 一切正常.
I had set up two Wordpress development sites, URL's were something like mysite.com/dev/blog1 and mysite.com/dev/blog2. blog2 would fetch posts from categories on blog1 using fetch_feed() e.g. fetch_feed(mysite.com/dev/blog1/category/fun/feed) and everything worked fine.
但是,由于将站点移至 mysite.com/blog1 和 mysite.com/blog2,该提要不起作用.我收到以下错误:
However, since moving the sites over to mysite.com/blog1 and mysite.com/blog2, the feed does not work. I get the following error:
在 mysite.com/blog1/category/fun/feed 上找不到提要.具有无效 MIME 类型的提要可能成为此错误的受害者,或者 SimplePie 无法自动发现它.如果您确定此 URL 是真实提要,请使用 force_feed()." } } ["error_data"]=>数组(0){}}
A feed could not be found at mysite.com/blog1/category/fun/feed. A feed with an invalid mime type may fall victim to this error, or SimplePie was unable to auto-discover it.. Use force_feed() if you are certain this URL is a real feed." } } ["error_data"]=> array(0) { } }
当我转到提要网址时,提要确实存在.
When I go to the feed URL though, the feed does exist.
有什么想法吗?
推荐答案
遇到了同样的问题.我尝试了不同的 Wordpress RSS 插件并得到相同的结果:RSS 错误:无法在...处找到提要"(对于几乎所有 RSS 提要,除了来自 feedburner 的提要!)
Had the same problem. I've tried different Wordpress RSS plugins and got the same result: "RSS Error: A feed could not be found at ..."(For almost all RSS feeds except for feeds from feedburner!)
我联系了我们的提供商/网络托管服务,他们在一分钟内解锁"了 RSS 提要的域,现在它完美运行!
I contacted our provider / web hosting service, they "unlocked" the domain of the rss feed within a minute and now it works perfectly!
如果您使用的是网络托管服务商,您可能需要联系他们的支持团队寻求帮助.
If you're using a webhoster, maybe you need to contact their support for help.
这篇关于Wordpress 提要 - (在以下位置找不到提要)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!