Jump to:

1016 Posts in 567 Topics by 309 members

Forum Module

SilverStripe Forums » Forum Module » Forum: a problem

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 658 Views
  • RAEL70
    Avatar
    Community Member
    8 Posts

    Forum: a problem Link to this post

    I installed the forum module and is perfectly visible but when I click on "General Discussion" (for example) I get this error:

    Source

    1687     *
    1688     * @return bool Set to TRUE if the user is allowed to, to FALSE if they're
    1689     * not
    1690     */
    1691    function canAttach() {
    1692       return $this->CanAttachFiles ? true : false;
    1693    }
    1694
    1695    function ForumHolderURLSegment() {
    1696       trigger_error('Forum::ForumHolderURLSegment is deprecated. Please use Forum::ForumHolderLink() instead which works with nested URLs.', E_USER_WARNING);
    1697       return $this->ForumHolderLink();
    1698    }
    1699
    1700    /**
    1701     * Get the forum holder's URL segment
    1702     */

    What's the problem?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Forum: a problem Link to this post

    Something is calling ForumHolderURLSegment() which is outdated. In forum trunk you should use $Link where ever you need to generate a link. Do a search in your template for ForumHolderURLSegment or post the full backtrace which will show the caller

  • RAEL70
    Avatar
    Community Member
    8 Posts

    Re: Forum: a problem Link to this post

    Dear Willr, here the complete message:

    Source
    1687     *
    1688     * @return bool Set to TRUE if the user is allowed to, to FALSE if they're
    1689     * not
    1690     */
    1691    function canAttach() {
    1692       return $this->CanAttachFiles ? true : false;
    1693    }
    1694
    1695    function ForumHolderURLSegment() {
    1696       trigger_error('Forum::ForumHolderURLSegment is deprecated. Please use Forum::ForumHolderLink() instead which works with nested URLs.', E_USER_WARNING);
    1697       return $this->ForumHolderLink();
    1698    }
    1699
    1700    /**
    1701     * Get the forum holder's URL segment
    1702     */
    Trace
    •trigger_error(Forum::ForumHolderURLSegment is deprecated. Please use Forum::ForumHolderLink() instead which works with nested URLs.,512)
    Line 1696 of Forum.php
    •Forum_Controller->ForumHolderURLSegment()
    Line 369 of ViewableData.php
    •ViewableData->obj(ForumHolderURLSegment,,,1,)
    Line 411 of ViewableData.php
    •ViewableData->cachedCall(ForumHolderURLSegment,)
    Line 424 of ViewableData.php
    •ViewableData->hasValue(ForumHolderURLSegment)
    Line 133 of .cache.forum.templates.Layout.Forum.ss
    •include(C:\Windows\Temp\silverstripe-cacheC--wamp-www-*******\.cache.forum.templates.Layout.Forum.ss)
    Line 420 of SSViewer.php
    •SSViewer->process(Forum_Controller,Zend_Cache_Frontend_Output)
    Line 411 of SSViewer.php
    •SSViewer->process(Forum_Controller)
    Line 202 of Controller.php
    •Controller->handleAction(SS_HTTPRequest)
    Line 143 of RequestHandler.php
    •RequestHandler->handleRequest(SS_HTTPRequest)
    Line 147 of Controller.php
    •Controller->handleRequest(SS_HTTPRequest)
    Line 199 of ContentController.php
    •ContentController->handleRequest(SS_HTTPRequest)
    Line 184 of ContentController.php
    •ContentController->handleRequest(SS_HTTPRequest)
    Line 67 of ModelAsController.php
    •ModelAsController->handleRequest(SS_HTTPRequest)
    Line 282 of Director.php
    •Director::handleRequest(SS_HTTPRequest,Session)
    Line 125 of Director.php
    •Director::direct(/forums/general-discussion/)
    Line 127 of main.php

    Where's the problem?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Forum: a problem Link to this post

    C:\Windows\Temp\silverstripe-cacheC--wamp-www-*******\.cache.forum.templates.Layout.Forum.ss)

    That is where the error is coming from. Forum.css has a $ForumHolderURLSegment which it shouldn't. Find it and change it to $Link. Are you using the latest trunk?

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