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.

Forum Module /

Discuss the Forum Module.

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

Forum Admin Features not working.


Go to End
Reply


10 Posts   1858 Views

Avatar
w1nk5

Community Member, 25 Posts

31 July 2010 at 7:45am

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 :)

Avatar
Willr

Forum Moderator, 5513 Posts

31 July 2010 at 6:17pm

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

Avatar
w1nk5

Community Member, 25 Posts

2 August 2010 at 1:42am

Edited: 02/08/2010 1:48am

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.

Avatar
w1nk5

Community Member, 25 Posts

3 August 2010 at 2:49am

bump

Avatar
MarkAB

Community Member, 30 Posts

10 August 2010 at 1:18am

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!!

Avatar
Willr

Forum Moderator, 5513 Posts

10 August 2010 at 2:02pm

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?

Avatar
w1nk5

Community Member, 25 Posts

11 August 2010 at 12:00am

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

Avatar
w1nk5

Community Member, 25 Posts

12 August 2010 at 2:18pm

Edited: 12/08/2010 3:02pm

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.

Go to Top