Medium.com的RSS源无效,我怎样才能让它工作?

时间:2014-02-03 22:52:51

标签: php rss

一年前medium.com announced that it would provide RSS feeds

然而似乎他们的所有Feed都没有验证,例如this page不会在Feed Validator验证(我尝试过的任何其他来自medium.com的Feed)。

我正在使用Wordpress,当我输入RSS源的URL时,我在正在加载脚本的页面上收到此消息:

  

RSS错误:WP HTTP错误:从服务器清空回复

任何提示?似乎它不受我的控制,对我来说没有多大意义。

3 个答案:

答案 0 :(得分:1)

Feed不是100%有效但我怀疑这是问题,因为它有一个额外的<author>元素,其中有很多RSS源实际上有。它也错过了webMaster fied中的名称,这也不是基于our经验的真正问题。

现在,您遇到的错误似乎与HTTP错误/问题更相关。它似乎表明您的WP无法连接到中型服务器。你应该检查一下。 如果这是您拥有的服务器,可以尝试curl该框中的Feed网址吗?

另外,您正在使用的HTTP库是什么?它是插件的一部分吗?

答案 1 :(得分:1)

One of the Medium Engineer's describes在一个Medium帖子中的WordPress空响应作为对pingback重载问题的回应。我通过Feedburner使用this RegEx101 link创建了一种代理服务器,在一些项目中解决了这个问题。我可以访问RSS源的端点。通过使用Medium RSS URL并将其粘贴到Feedburner中,您会得到一个似乎导入WordPress的http://feeds.feedburner.com/XYZ网址,没问题。

答案 2 :(得分:0)

使用以下链接将RSS转换为JSON。替换您的用户名而不是Loading composer repositories with package information Installing dependencies from lock file Nothing to install or update Generating optimized autoload files ocramius/package-versions: Generating version class... ocramius/package-versions: ...done generating version class Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 255 !! PHP Fatal error: Uncaught Error: Class 'Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle' not found in /var/www/upr/src/Kernel.php:23 !! Stack trace: !! #0 /var/www/upr/vendor/symfony/http-kernel/Kernel.php(429): App\Kernel->registerBundles() !! #1 /var/www/upr/vendor/symfony/http-kernel/Kernel.php(130): Symfony\Component\HttpKernel\Kernel->initializeBundles() !! #2 /var/www/upr/vendor/symfony/framework-bundle/Console/Application.php(159): Symfony\Component\HttpKernel\Kernel->boot() !! #3 /var/www/upr/vendor/symfony/framework-bundle/Console/Application.php(65): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() !! #4 /var/www/upr/vendor/symfony/console/Application.php(149): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) !! #5 /var/www/upr/bin/console(42): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput)) !! #6 {main} !! thrown in /var/www/upr/src/Kernel.php on line 23 !! Script @auto-scripts was called via post-install-cmd PHP Fatal error: Uncaught Error: Class 'Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle' not found in /var/www/upr/src/Kernel.php:23 Stack trace: #0 /var/www/upr/vendor/symfony/http-kernel/Kernel.php(429): App\Kernel->registerBundles() #1 /var/www/upr/vendor/symfony/http-kernel/Kernel.php(130): Symfony\Component\HttpKernel\Kernel->initializeBundles() #2 /var/www/upr/vendor/symfony/framework-bundle/Console/Application.php(159): Symfony\Component\HttpKernel\Kernel->boot() #3 /var/www/upr/vendor/symfony/framework-bundle/Console/Application.php(65): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() #4 /var/www/upr/vendor/symfony/console/Application.php(149): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/upr/bin/console(42): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput)) #6 {main} thrown in /var/www/upr/src/Kernel.php on line 23 PHP Fatal error: Uncaught Error: Class 'Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle' not found in /var/www/upr/src/Kernel.php:23 Stack trace: #0 /var/www/upr/vendor/symfony/http-kernel/Kernel.php(429): App\Kernel->registerBundles() #1 /var/www/upr/vendor/symfony/http-kernel/Kernel.php(130): Symfony\Component\HttpKernel\Kernel->initializeBundles() #2 /var/www/upr/vendor/symfony/framework-bundle/Console/Application.php(159): Symfony\Component\HttpKernel\Kernel->boot() #3 /var/www/upr/vendor/symfony/framework-bundle/Console/Application.php(65): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() #4 /var/www/upr/vendor/symfony/console/Application.php(149): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/upr/bin/console(42): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput)) #6 {main} thrown in /var/www/upr/src/Kernel.php on line 23 如果使用RSS,将发生CROS错误。

-no--dev