Jump to:

1016 Posts in 567 Topics by 309 members

Forum Module

SilverStripe Forums » Forum Module » Forum Admin Features not working.

Discuss the Forum Module.

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

Page: 1 2
Go to End
Author Topic: 1619 Views
  • w1nk5
    Avatar
    Community Member
    25 Posts

    Forum Admin Features not working. Link to this post

    I have installed the forum module and everything works great except one feature.

    After posting a new thread it gives you "Forum Admin Features"

    - Is this a Sticky thread?
    - Is this a Global Sticky?
    - Is this a Read only thread?
    - Change thread forum.

    However, if I select any of these options it throws the following error:

    **********************************************************
    [User Error] No Posts Found

    POST /discussion-forums/drug-addiction-discussion/AdminFormFeatures

    Line 1741 in /home/drugeducation/html/forum/code/Forum.php
    **********************************************************

    Anyone have any insight on this issue?

    Thanks

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Forum Admin Features not working. Link to this post

    Could you please post versions of your SilverStripe install and your Forum installation version.

  • w1nk5
    Avatar
    Community Member
    25 Posts

    Re: Forum Admin Features not working. Link to this post

    Yeah sure.

    SilverStripe v2.4.0

    I'm almost positive the forum module is version 0.3. However, the Readme file states its version 0.2.

  • w1nk5
    Avatar
    Community Member
    25 Posts

    Re: Forum Admin Features not working. Link to this post

    bump

  • MarkAB
    Avatar
    Community Member
    30 Posts

    Re: Forum Admin Features not working. Link to this post

    I too am having this problem, after trying to make a sticky in the Admin section I get the following error...

    "Website Error
    There has been an error

    The website server has not been able to respond to your request."

    This may be related to my other problem of not having the Reply Form appear?!?

    Any help/advice would be great.

    Thanks!!

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Forum Admin Features not working. Link to this post

    w1nk5 I just tried this on my 0.3 instance and it seems to work fine with a default install and configuration

    The following code is from Forum.php and which is the code throwing the error which would be great if you could debug through.

    $posts = DataObject::get("Post", "`Post`.TopicID = '$oldTopic'");
          
    if(!$posts) return user_error("No Posts Found", E_USER_ERROR);

    Things to check

    * Is $oldTopic set? and if it is, is it set the correct value? Doing a Debug::show($oldTopic); will help output it.
    * Try changing the posts query to DataObject::get("Post"); Do you get forum posts? does the one which you just posted appear in that list?

  • w1nk5
    Avatar
    Community Member
    25 Posts

    Re: Forum Admin Features not working. Link to this post

    Thanks Willr, I'll give it a try today.

  • w1nk5
    Avatar
    Community Member
    25 Posts

    Re: Forum Admin Features not working. Link to this post

    The value of $oldTopic is set to 'show' which isn't the name of any of my topics.

    The url structure looks as follows when viewing a post with Forum Admin Features:

    http://drugeducationalliance.ca/discussion-forums/bullying-discussion/show/5?showPost=5

    within the controller it sets the $oldTopic variable from a hiddenfield 'Topic' that is set using the following code:

    $id = Convert::raw2sql(Director::urlParam('ID'));
    new HiddenField("Topic", "Topic", $id)

    And as you can see from the url above. There is no urlParam "ID"... and it is being set to 'show'

    ------------------------------------------------------------------------------------------------------------------------------------------------------

    When I change the posts query to DataObject::get("Post"); and make a post a sticky it sends me to a page not found page and make every post within the topic an announcement.

    1619 Views
Page: 1 2
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.