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.

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   1289 Views

Avatar
dizzystuff

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 BlogHolder.ss template never returns true so I never get the "Viewing entries tagged with" text when going to http://domain.com/blog/tag/tagname.

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?

Thanks
dizzy

Avatar
dizzystuff

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.