Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.
If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
You may also want to review the installation or upgrading documentation.
Hi,
I'm evaluating mojoportal using SQLite with version 2.2.3.3 but am getting the following exception when i try to add a new page. Editing existing pages and adding e.g. users works fine so I assume it has nothing to do with the site configuration itself.
2007-08-08 19:39:07,656 [2088] ERROR mojoPortal.Web.Global [(null)] - System.NullReferenceException: Object reference not set to an instance of an object. at mojoPortal.Data.SqliteHelper.ExecuteScalar(IDbConnection connection, String commandText, IDataParameter[] commandParameters) at mojoPortal.Data.SqliteHelper.ExecuteScalar(String connectionString, String commandText, IDataParameter[] commandParameters) at mojoPortal.Data.dbPortal.PageSettings_GetNextPageOrder(Int32 siteID, Int32 parentID) at mojoPortal.Business.PageSettings.GetNextPageOrder(Int32 siteID, Int32 ParentID) at mojoPortal.Web.AdminUI.PageProperties.SavePageData() at mojoPortal.Web.AdminUI.PageProperties.Apply_Click(Object Sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 2007-08-08 19:39:07,859 [2088] ERROR mojoPortal.Web.Global [(null)] - System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at mojoPortal.Data.SqliteHelper.ExecuteScalar(IDbConnection connection, String commandText, IDataParameter[] commandParameters) at mojoPortal.Data.SqliteHelper.ExecuteScalar(String connectionString, String commandText, IDataParameter[] commandParameters) at mojoPortal.Data.dbPortal.PageSettings_GetNextPageOrder(Int32 siteID, Int32 parentID) at mojoPortal.Business.PageSettings.GetNextPageOrder(Int32 siteID, Int32 ParentID) at mojoPortal.Web.AdminUI.PageProperties.SavePageData() at mojoPortal.Web.AdminUI.PageProperties.Apply_Click(Object Sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.admin_pagesettings_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Thanks a lot for any help in advance.
cheers, chris
Hi Chris,
Thanks for reporting this. I do see a bug in the code in the method identified by the error.
I will have this fixed in svn trunk by the end of the day and hopefully can make a new release within the next few days.
Thanks,
Joe
wow, thanks for the quick reply, I'll be checking in again later then :)