Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
motomac Posted January 5, 2016 Posted January 5, 2016 $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?
bfarber Posted January 12, 2016 Posted January 12, 2016 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.
motomac Posted March 16, 2017 Author Posted March 16, 2017 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?
bfarber Posted March 16, 2017 Posted March 16, 2017 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.