2.2.9.2 SQLite, Error when deleting site.

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/2009 8:07:45 AM
Gravatar
Total Posts 33

2.2.9.2 SQLite, Error when deleting site.

Windows XP, ASP.net 3.5 installed, IIS6.
Mojoportal Version: 2.2.9.2 SQLite

What I did:
After enabling the AllowDeleteSites, I clicked Delete on site created by error, and hit Yes on the prompt

Error message:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Sqlite error
near "SiteID": syntax error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Mono.Data.Sqlite.SqliteException: Sqlite error
near "SiteID": syntax error

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqliteException (0x80004005): Sqlite error
near "SiteID": syntax error]
Mono.Data.Sqlite.Sqlite3.Prepare(String strSql, SqliteStatement previous, String& strRemain) +593
Mono.Data.Sqlite.SqliteCommand.BuildNextCommand() +299
Mono.Data.Sqlite.SqliteCommand.GetStatement(Int32 index) +60
Mono.Data.Sqlite.SqliteCommand.ExecuteNonQuery() +25
mojoPortal.Data.SqliteHelper.ExecuteNonQuery(IDbConnection connection, String commandText, IDataParameter[] commandParameters) +161
mojoPortal.Data.SqliteHelper.ExecuteNonQuery(String connectionString, String commandText, IDataParameter[] parms) +72
mojoPortal.Data.DBSiteSettings.Delete(Int32 siteId) +953
mojoPortal.Business.SiteSettings.Delete(Int32 siteId) +5
mojoPortal.Web.AdminUI.SiteSettingsPage.btnDelete_Click(Object sender, EventArgs e) +138
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Any ideas?

4/17/2009 8:13:12 AM
Gravatar
Total Posts 18439

Re: 2.2.9.2 SQLite, Error when deleting site.

Hi,

Thanks for reporting this. I looked in the relevant code and I found the syntax error. I just fixed it so it will be fixed in the new release coming next week.

Best,

Joe 

4/17/2009 8:17:09 AM
Gravatar
Total Posts 33

Re: 2.2.9.2 SQLite, Error when deleting site.

Awesome, thanks.

5/6/2009 1:30:46 PM
Gravatar
Total Posts 33

Re: 2.2.9.2 SQLite, Error when deleting site.

Joe,

I just tried upgrading to 2.3.0.1 PGSQL, and it doesn't seem to be working, I'm getting the same type of message:

Server Error in '/' Application.
Sqlite error
near "SiteID": syntax error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Mono.Data.Sqlite.SqliteException: Sqlite error
near "SiteID": syntax error

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqliteException (0x80004005): Sqlite error
near "SiteID": syntax error]
Mono.Data.Sqlite.Sqlite3.Prepare(String strSql, SqliteStatement previous, String& strRemain) +593
Mono.Data.Sqlite.SqliteCommand.BuildNextCommand() +299
Mono.Data.Sqlite.SqliteCommand.GetStatement(Int32 index) +60
Mono.Data.Sqlite.SqliteCommand.ExecuteNonQuery() +25
mojoPortal.Data.SqliteHelper.ExecuteNonQuery(IDbConnection connection, String commandText, IDataParameter[] commandParameters) +161
mojoPortal.Data.SqliteHelper.ExecuteNonQuery(String connectionString, String commandText, IDataParameter[] parms) +72
mojoPortal.Data.DBSiteSettings.Delete(Int32 siteId) +953
mojoPortal.Business.SiteSettings.Delete(Int32 siteId) +5
mojoPortal.Web.AdminUI.SiteSettingsPage.btnDelete_Click(Object sender, EventArgs e) +138
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
 

It's slightly different, but almost the same.

5/6/2009 1:52:36 PM
Gravatar
Total Posts 18439

Re: 2.2.9.2 SQLite, Error when deleting site.

You upgraded to PGSQL? The error is about SQLite.

5/6/2009 2:03:16 PM
Gravatar
Total Posts 18439

Re: 2.2.9.2 SQLite, Error when deleting site.

Hi,

Though you posted a SQLite error, I took a look at the pgsql code and saw the same syntax error that was previously fixed in the SQLite version. It must have been a copy paste bug where I made the same copy paste mistake in both versions. In any case I have fixed it my copy so it will be fixed in pgsql for the next release.

Best,

Joe 

5/6/2009 5:16:36 PM
Gravatar
Total Posts 33

Re: 2.2.9.2 SQLite, Error when deleting site.

Holy crap, I actually put the pgsql release files instead of the sqlite ones - that was stupid of me.

Let's try with the right files... :|

5/7/2009 10:37:29 AM
Gravatar
Total Posts 33

Re: 2.2.9.2 SQLite, Error when deleting site.

Works fine now that I took the proper files.

Thanks Joe, sorry for the scare (and glad you found the bug in pgsql while you were at it!)

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