Jump to:

1840 Posts in 1563 Topics by 557 members

Blog Module

SilverStripe Forums » Blog Module » showTags() causing error and selectedTags() returning nothing in latest SS+Blog

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 714 Views
  • dizzystuff
    Avatar
    Community Member
    93 Posts

    showTags() causing error and selectedTags() returning nothing in latest SS+Blog Link to this post

    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

  • dizzystuff
    Avatar
    Community Member
    93 Posts

    Re: showTags() causing error and selectedTags() returning nothing in latest SS+Blog Link to this post

    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.

    714 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.