1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » showTags() causing error and selectedTags() returning nothing in latest SS+Blog
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 615 Views |
-
showTags() causing error and selectedTags() returning nothing in latest SS+Blog

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 -
Re: showTags() causing error and selectedTags() returning nothing in latest SS+Blog

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.
| 615 Views | ||
|
Page:
1
|
Go to Top |

