941 Posts in 272 Topics by 292 members
Forum Module
SilverStripe Forums » Forum Module » Forum Admin Features not working.
Discuss the Forum Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 1349 Views |
-
Forum Admin Features not working.

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 FoundPOST /discussion-forums/drug-addiction-discussion/AdminFormFeatures
Line 1741 in /home/drugeducation/html/forum/code/Forum.php
**********************************************************Anyone have any insight on this issue?
Thanks
-
Re: Forum Admin Features not working.

31 July 2010 at 6:17pm
Could you please post versions of your SilverStripe install and your Forum installation version.
-
Re: Forum Admin Features not working.

2 August 2010 at 1:42am Last edited: 2 August 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.
-
Re: Forum Admin Features not working.

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 errorThe 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!!
-
Re: Forum Admin Features not working.

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? -
Re: Forum Admin Features not working.

11 August 2010 at 12:00am
Thanks Willr, I'll give it a try today.
-
Re: Forum Admin Features not working.

12 August 2010 at 2:18pm Last edited: 12 August 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.
| 1349 Views | ||
| Go to Top | Next > |



