Jump to content

RSS check stopped working after 4.1.6 upgrade

Featured Replies

Posted
$response = \IPS\Http\Url::external( "http://somewebsite.com/rss/" )->request()->get()->decodeXml();

if ( !( $response instanceof \IPS\Xml\Rss ) and !( $response instanceof \IPS\Xml\Atom ) ) {
	throw new \IPS\Task\Exception( $this, 'Error updating feed' );
}

After upgrade to 4.1.6 such condition returns TRUE on valid RSS feeds. Is it a bug? How to fix it?

The class \IPS\Xml\Rss was renamed to \IPS\Xml\RssTwo in the last release, however we have opted to rename it back to \IPS\Xml\Rss for this upcoming release.  We introduced support for RSS 1.0 documents and as such had to split the Rss class up.

  • 1 year later...
  • Author

Hi @bfarber

After upgrade to 4.1.19 I got another problem with RSS:

$response = \IPS\Http\Url::external( "http://somewebsite.com/rss/" )->request()->get()->decodeXml();

Error:

Error: Call to a member function decodeXml() on null (0)
#0 /var/www/site.com/system/Task/Task.php(249): IPS\pluginTasks\_someupdate->execute()
#1 /var/www/site.com/applications/core/modules/admin/settings/advanced.php(562): IPS\_Task->run()
#2 /var/www/site.com/system/Dispatcher/Controller.php(86): IPS\core\modules\admin\settings\_advanced->runTask()
#3 /var/www/site.com/applications/core/modules/admin/settings/advanced.php(35): IPS\Dispatcher\_Controller->execute()
#4 /var/www/site.com/system/Dispatcher/Dispatcher.php(129): IPS\core\modules\admin\settings\_advanced->execute()
#5 /var/www/site.com/admin/index.php(14): IPS\_Dispatcher->run()
#6 {main}

Could you, please, recommend how to fix it?

7 hours ago, motomac said:

Hi @bfarber

After upgrade to 4.1.19 I got another problem with RSS:


$response = \IPS\Http\Url::external( "http://somewebsite.com/rss/" )->request()->get()->decodeXml();

Error:


Error: Call to a member function decodeXml() on null (0)
#0 /var/www/site.com/system/Task/Task.php(249): IPS\pluginTasks\_someupdate->execute()
#1 /var/www/site.com/applications/core/modules/admin/settings/advanced.php(562): IPS\_Task->run()
#2 /var/www/site.com/system/Dispatcher/Controller.php(86): IPS\core\modules\admin\settings\_advanced->runTask()
#3 /var/www/site.com/applications/core/modules/admin/settings/advanced.php(35): IPS\Dispatcher\_Controller->execute()
#4 /var/www/site.com/system/Dispatcher/Dispatcher.php(129): IPS\core\modules\admin\settings\_advanced->execute()
#5 /var/www/site.com/admin/index.php(14): IPS\_Dispatcher->run()
#6 {main}

Could you, please, recommend how to fix it?

There is a patch in the release announcements (Curl.php and Sockets.php) that resolves the issue you're facing.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.