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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Blog Module /

Discuss the Blog Module.

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

showTags() causing error and selectedTags() returning nothing in latest SS+Blog

Go to End

2 Posts   1013 Views


Community Member, 94 Posts

13 June 2010 at 2:40pm

Hey All

Pretty much as the title suggests - I'm running latest SS + Blog, showTags() is throwing an error when I try to hit a BlogHolder page.

Fatal error: Call to a member function latestParam() on a non-object in /path/to/blog/code/BlogHolder.php on line 76

If I comment that function out it works great - except the new SelectedTags check in the template never returns true so I never get the "Viewing entries tagged with" text when going to

I know this is probably one of those times where it serves me right for using the latest builds rather than something more stable. Nevertheless if it's a simple fix, all is good. If it's not, has there been a change I can look for in the repo and roll back to that revision while this is resolved?



Community Member, 94 Posts

14 June 2010 at 10:01pm

Ok I've given this another test and selectedTags() now seems to be working fine. Not sure what happened there, sorry.

The showTags() function is still causing the fatal error in my post above though.