As my previous post said, I installed Yet Another Forum v1.9.1.8 on my server, then I created a board/forum. In my first and only one forum, I turned on the moderate mode which means that any post topic will not show till the forum administrator approves.
Then I went ahead to create the first new topic, and later on a few replied have been posted. Everything was fine but a few days ago the front page could not be seen. I tried a couple of times, only saw the error messages (There has been a serious error loading the forum. No futher information is available…) as the following screen shot. And funny thing was I still could access to other web pages include the administrative portion.

To trouble shoot, I looked at the error log:
Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.DBNull.System.IConvertible.ToDateTime(IFormatProvider provider)
at System.Convert.ToDateTime(Object value)
at ASP.pages_forum_ascx.__DataBind__control10(Object sender, EventArgs e) in e:\WebDocs\Apps\Forum\pages\forum.ascx:line 76
Curiously I went to my forum, and created a new topic in the forum. I got a message said since this is a moderated forum, my post could not be seen till the moderator approves. And after a few, the forum crashed again. I am not sure why this happened, but I doubt there was a bug in the code during moderate mode. If I turn off the moderate, so far, not such crash thing happened.
After looking for solution on YetAnotherForum support forum, I figured out the temporary solution as the below.
- Open the file page/forum.ascx, and find the line 76.
- Then replace the code on that line with
<%# FormatDateTimeTopic( Convert.ToDateTime( DataBinder.Eval( Container.DataItem, “LastPosted” ) == DBNull.Value ? DateTime.Now : DataBinder.Eval( Container.DataItem, “LastPosted” ) ) )%>
- Save this file, and you will be fine now.
I guess more works need to be done on this version of YAF, 1) to look up the save topic stored procedure to make sure the last posted date not be null; 2) to modify the forum.ascx file to make sure a pending new topic not shown in the active discussion section.
Thank you for your site
I made with photoshop backgrounds for myspace,youtube and more
my backgrounds:http://tinyurl.com/6exhae
Hope you had a good day and thank you again!
[
Reply ]