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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Upgraded to 2.4.5, news function no longer working


Go to End


2208 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.