Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Upgraded to 2.4.5, news function no longer working


Reply


1459 Views

Avatar
doubleedesign

Community Member, 19 Posts

4 March 2011 at 10:31am

Edited: 04/03/2011 10:36am

When I created my site I followed the tutorial to create a latest news feature. The latest news displays in three locations - the main "News Feed" page, the Homepage, and a "News & Events" page that is the parent of the News Feed. So the .php files in mysite/code for these page types contains a latest news function.

I have just upgraded SilverStripe to the latest version, and the news no longer shows up in any of these locations. If I type in the full URL of an article, it comes up - so the pages themselves do actually exist. I also tried changing the .ss files to use <% control ChildrenOf(news-feed) %> as a temporary measure but this didn't work either.

I have flushed all the relevant templates, and deleted and re-created the Homepage (as I had an issue with this page as well which is now resolved), News Feed and articles. Nothing has worked.

I also tried a suggestion I saw on another thread to put the LatestNews function in the PageController class in page.php, to no avail.

Any advice would be greatly appreciated, I'm very stuck about what to try next.