Forums: Reply Problem

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/17/2010 5:18:27 PM
Gravatar
Total Posts 5

Forums: Reply Problem

Hi!

Server: Windows 2003

Homepage: www.seventeenfour.com / feel free to reproduce the error there

mojoPortal Version 2.3.3.2 SQLite

When a user creates a new topic as guest (anonymous) and I click on reply then (as registered user or as guest), I get the following error:

2010-04-17 23:58:36,921 ERROR mojoPortal.Web.Global - 90.146.36.159-en-US - /Forums/EditPost.aspx?pageid=5&mid=21&ItemID=2&postid=3&thread=3&forumid=2&pagenumber=1
System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider)
at System.Convert.ToInt32(Object value)
at ASP.forums_editpost_aspx.__DataBinding__control9(Object sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
at System.Web.UI.WebControls.Repeater.DataBind()
at mojoPortal.Web.ForumUI.ForumPostEdit.PopulateControls()
at mojoPortal.Web.ForumUI.ForumPostEdit.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Regards,

Andreas



 

4/19/2010 12:33:38 PM
Gravatar
Total Posts 18439

Re: Forums: Reply Problem

Hi Andreas,

I recommend get mojoPortal 2.3.4.2, if the problem persists in the new version then I will investigate it as a bug, but I can't fix old versions and my guess is this is already fixed in the current version.

Hope it helps,

Joe

4/20/2010 1:28:27 PM
Gravatar
Total Posts 5

Re: Forums: Reply Problem

Hi Joe!

Thanks for your reply. I wasn't aware, that I was running an old version. smiley

I have upgraded to Version 2.3.4.2 SQLite, but I still get the same error:

2010-04-20 20:13:18,694 ERROR mojoPortal.Web.Global - 90.146.36.159-en-US - /Forums/EditPost.aspx?thread=3&forumid=2&mid=21&pageid=5&pagenumber=1
System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider)
at System.Convert.ToInt32(Object value)
at ASP.forums_editpost_aspx.__DataBinding__control9(Object sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
at System.Web.UI.WebControls.Repeater.DataBind()
at mojoPortal.Web.ForumUI.ForumPostEdit.PopulateControls()
at mojoPortal.Web.ForumUI.ForumPostEdit.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Kind regards,

Andreas

4/20/2010 1:56:23 PM
Gravatar
Total Posts 18439

Re: Forums: Reply Problem

Hi Andreas,

Thanks. I was able to reproduce the problem and fix it. I will put up a fixed 2.3.4.2 version for Sqlite tomorrow and post again to let you know when it is available.

Best,

Joe

4/22/2010 7:24:48 AM
Gravatar
Total Posts 18439

Re: Forums: Reply Problem

Hi,

If you download mojoportal-2-3-4-2-sqlite-deploymentfiles.zip again and re-deploy it, this issue is fixed. 

Best,

Joe

4/23/2010 7:24:11 AM
Gravatar
Total Posts 5

Re: Forums: Reply Problem

Hi Joe!

I hope your are doing fine :-)

Unfortunately things are even worse now, at least for me.

I have downloaded the latest mojoportal-2-3-4-2-sqlite-deploymentfiles.zip again.

I took the server offline and restarted it. I made a copy of the current web.config and the mojo.db.config. Then I copied all the files of the zip file to the wwwroot directory and overwrote all the old files. After that I copied the db file and the web.config and overwrote the standard files.

Finally I started wwwroot/Setup/Default.aspx

When I then went on the page, where the forum is, I got the following error:

2010-04-23 14:05:40,562 ERROR mojoPortal.Web.Global - 192.168.0.200-en-US - /support.aspx
System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToDateTime(IFormatProvider provider)
at System.Convert.ToDateTime(Object value)
at ASP.forums_forummodule_ascx.__DataBind__control16(Object sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
at System.Web.UI.WebControls.Repeater.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at mojoPortal.Web.ForumUI.ForumModule.PopulateControls()
at mojoPortal.Web.ForumUI.ForumModule.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

So, I tested, what would happen, if I create a new forum. I created a new test page, add the forum modul. That worked fine. But when I then wanted to add a new category, I got the same error:

2010-04-23 14:07:22,859 ERROR mojoPortal.Web.mojoBasePage - 192.168.0.200-en-US - /new-page.aspx
System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToDateTime(IFormatProvider provider)
at System.Convert.ToDateTime(Object value)
at ASP.forums_forummodule_ascx.__DataBind__control16(Object sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
at System.Web.UI.WebControls.Repeater.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at mojoPortal.Web.ForumUI.ForumModule.PopulateControls()
at mojoPortal.Web.ForumUI.ForumModule.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

Kind regards,

Andreas

4/23/2010 7:30:59 AM
Gravatar
Total Posts 18439

Re: Forums: Reply Problem

Hi Andreas,

Generally you should use the new Web.config and restore customizations, though I don't think that is causing the issues in this case.

Did you visit the /Setup/Default.aspx page?

If your db doesn't have anything top secret, can you create an admin login for me and then send me a copy of your db in a .zip file so I can debug it here? joe dot audette at g mail dot com

Best,

Joe

4/23/2010 10:25:56 AM
Gravatar
Total Posts 18439

Re: Forums: Reply Problem

Hi Andreas,

I've patched the 2.3.4.2 Sqlite deployment files package again, can you try the latest? You can skip uploading the /ClientScript, /Data, and /Setup folders but I would upload everything else just to be sure.

Hope it helps,

Joe

4/25/2010 8:50:27 AM
Gravatar
Total Posts 5

Re: Forums: Reply Problem

Hi Joe!

Thanks for your great support so far. I am now able to reply to posts again. :-)

There is still another problem, which is not such a big for me (as all my visitors post anonymous), but might for someone else: When you go to EditSubscriptions.aspx you get the very same error: Object cannot be cast from DBNull to other types.

There was also another problem, but I was able to fix this myself:

In the forum the buttons for the RSS feed and the pencil.png were missing. So, I copied the missing css lines and graphics into App_Themes\default\. I don't know, if this was the correct way to fix it, but it's working so far.

Regards,

Andreas

4/27/2010 2:15:34 PM
Gravatar
Total Posts 18439

Re: Forums: Reply Problem

Hi Andreas,

Thanks for following up and letting me know about the same error on the subscription page. I have fixed this as well and hope to make a new release tomorrow or the next day.

About the forum icons, we changed to make it load those from css to make it more customizable from skinning. It was mentioned in the 2.3.4.2 release announcement that you need to add this to your style.config file:

<file cssvpath="/ClientScript/greybox/gb_styles.css" imagebasevpath="/ClientScript/greybox/">none</file>
<file cssvpath="/Data/style/forums/style.css" imagebasevpath="/Data/style/forums/">none</file>

You can find a more complete list of skin changes over time in this sticky thread in the skinning forum

Best,

Joe

4/29/2010 2:04:54 PM
Gravatar
Total Posts 5

Re: Forums: Reply Problem

Hi Joe!

I just installed the new release. Now everything works as it should be.

Thanks for the great support. I'll buy you a beer smiley

Regards,

Andreas

You must sign in to post in the forums. This thread is closed to new posts.