Create new newsfeed with the url:
http://www.volleybal.nl/application/handlers/export.php?format=rss&type=vereniging&programma=8151&iRegionId=7000
On the 'Display' tab, set the 'Feed Display Order to' 'Oldest first'
Load the feed using an menu-item or some others means.
No errors!
The following errors are displayed (along the the content)
Notice: Undefined property: stdClass::$items in D:\Xampp\htdocs\hwvvbenevia\components\com_newsfeeds\views\newsfeed\view.html.php on line 191
Warning: array_reverse() expects parameter 1 to be array, null given in D:\Xampp\htdocs\hwvvbenevia\components\com_newsfeeds\views\newsfeed\view.html.php on line 191
Using Joomla 3.4.3
To remove the error, modify line 69 $items = $categoryModel->getItems();
in the following $item->items = $categoryModel->getItems();
The error will no longer be shown, however it seems the sorting functionality does not work art all :(.
Maybe a result of the complete rewrite of the newsfeed code starting with Joomla 3.0
I had a little time, so made a PR/Fix for that issue: #8347 ready for testing.
Thanks. Closing as we have a PR :)
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-08 21:20:45 |
Closed_By | ⇒ | zero-24 |
Working perfectly - thanks!
I can confirm this issue - in 3.4.5 and staging.
The fix above fills only the empty member
$item->items
that is used in aarray_reverse()
(as $newsfeed->items). So the notice disapear. However, this member is not used for displaying the feed, and thus the ordering 'oldest first' doesn't come into effect.This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7727.