Problem with Blog Module after Update to 2.3.9.6 MSSQL

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.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

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.

This thread is closed to new posts. You must sign in to post in the forums.
3/16/2013 12:03:04 PM
Gravatar
Total Posts 14

Problem with Blog Module after Update to 2.3.9.6 MSSQL

Hi to all

Today I was updating to Version 2.3.9.6, the Log after running ..../Setup/Default.aspx displays no error.

All Blogs of my site are now unavailable. In the System Log there are errors reported like

2013-03-16 18:00:36,319 ERROR 172.20.20.1 - de-DE - /blog.aspx - mojoPortal.Web.Global -  Referrer(http://www.xxxx.yy/Admin/ServerLog.aspx) useragent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22
System.IndexOutOfRangeException: SubTitle
   bei System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
   bei System.Data.SqlClient.SqlDataReader.get_Item(String name)
   bei mojoPortal.Business.Blog.GetPageDataSet(Int32 moduleId, DateTime beginDate, Int32 pageNumber, Int32 pageSize, Int32& totalPages)
   bei mojoPortal.Web.BlogUI.PostList.BindBlogs()
   bei mojoPortal.Web.BlogUI.PostList.Page_Load(Object sender, EventArgs e)
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

Maybe i missed something to do?

Can anybody help me please?

Thanks a lot

Best Regards from Austria

3/16/2013 3:59:34 PM
Gravatar
Total Posts 18439

Re: Problem with Blog Module after Update to 2.3.9.6 MSSQL

Hi,

It sounds like it did not run all the upgrade scripts for the blog. 

Things to do to troubleshoot this problem:

  1. Check what version it says for the blog under Administration > System Information 
  2. The latest version of the blog should be 2.6.1.1
  3. Make sure you uploaded all the files under /Setup from the mojoportal package, upload again if needed and visit /Setup/Default.aspx to make it run any scripts newer than what is shows for the current version. 
  4. If it says the blog is up to date but you still get this error it still seems somehow it did not run all the upgrade scripts. I would look through the latest scripts to see what they did and compare to your db and run any of the scripts needed manually. The scripts are located under /Setup/applications/blog/SchemaUpgradeScripts/msssql
  5. ​Your specific error is about the SubTitle column which is apparently not existing in your mp_Blogs table. It should have been added by script 2.6.0.6.config in the folder I mentioned in item 4. You might check all the scripts newer than that as well and see if your db has missed any other new columns or data updates.

Hope that helps,

Joe

3/17/2013 1:51:13 AM
Gravatar
Total Posts 14

Re: Problem with Blog Module after Update to 2.3.9.6 MSSQL

Hi
Thanks for answer
the Blog version is 2.6.0.0.
I crosscheck all files under setup\applications\blog\*.* all are identical to the setup package.
I run setup/default.aspx again, and detected an error (sorry for not seeing this in the first run)
============
Configuring feature Bing Map - 00:00:01.5643530
Running script blog - 2.6.0.1 - 00:00:01.6356375
System.Data.SqlClient.SqlException (0x80131904): Zeichenfolgen- oder Binärdaten würden abgeschnitten. Die Anweisung wurde beendet. bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() bei System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) bei System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) bei System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) bei System.Data.SqlClient.SqlCommand.ExecuteNonQuery() bei mojoPortal.Data.SqlHelper.ExecuteNonQuery(SqlTransaction transaction, CommandType commandType, String commandText, Int32 commandTimeout, SqlParameter[] commandParameters) bei mojoPortal.Data.DBPortal.DatabaseHelperRunScript(String script, String overrideConnectionInfo) bei mojoPortal.Business.DatabaseHelper.RunScript(Guid applicationId, FileInfo scriptFile, String overrideConnectionInfo) - 00:00:01.9979190
Configuring feature Blog - 00:00:02.0262375
==================
Sorry Error is German, because SQL is German version, but means that that (n(v))char- or  binary data would be truncated so the script terminates. So I think this error exist a little bit longer, (2.6.0.1) i don't update every version of your great mojo.

The Error is in the SQL Statement

INSERT INTO mp_Comments(ParentGuid,SiteGuid,FeatureGuid,ModuleGuid,ContentGuid,UserGuid,Title,UserComment,UserName,UserEmail,UserUrl,UserIp,CreatedUtc,LastModUtc,ModerationStatus)

SELECT'00000000-0000-0000-0000-000000000000',m.SiteGuid,m.FeatureGuid,m.[Guid],b.BlogGuid,'00000000-0000-0000-0000-000000000000',bc.Title,bc.[Comment],bc.[Name],'',bc.URL,'',bc.DateCreated,bc.DateCreated,1 FROM mp_BlogComments bc JOIN mp_Blogs b ON b.ItemID = bc.ItemID JOIN mp_Modules m ON m.ModuleID = bc.ModuleID

Just doing the select part only I found one entry with the length of 56 Char´s in the bc.name field (Target table only allows 50 char)
The origin table mp_BlogComments allows 100 char in the name field, and the script didn´t cut this to 50.

After cutting the name field manually in mp_BlogComments all went fine.

Configuring feature Bing Map - 00:00:00.1298878
Running script blog - 2.6.0.1 - 00:00:00.1435602
Running script blog - 2.6.0.2 - 00:00:00.4189614
Running script blog - 2.6.0.3 - 00:00:00.6513922
Running script blog - 2.6.0.4 - 00:00:00.7529586
Running script blog - 2.6.0.5 - 00:00:00.8066716
Running script blog - 2.6.0.6 - 00:00:00.8515952
Running script blog - 2.6.0.7 - 00:00:01.0771898
Running script blog - 2.6.0.8 - 00:00:01.1543412
Running script blog - 2.6.0.9 - 00:00:01.4893150
Running script blog - 2.6.1.0 - 00:00:02.1084794
Running script blog - 2.6.1.1 - 00:00:02.1582860
Configuring feature Blog - 00:00:02.1875840
Configuring feature Comments - 00:00:02.2237182

Can I delete some content of the Blog Comments (spam) in database direct? in the old table mp_BlogComments or in the new mp_comments? I cant find this comments in the Webgui of the blogs.

So thanks again for help, I have 2 other smaller issues (both in Image Gallery) but I will make 2 new threads.

Peter

Best Regards from Austria

 

 

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