Jump to content

RSS check stopped working after 4.1.6 upgrade


motomac

Recommended Posts

$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?

Link to comment
Share on other sites

  • 1 year later...

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...