Cant upgrade

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.
8/23/2011 8:08:00 AM
Gravatar
Total Posts 6

Cant upgrade

Hi, im trying to upgrade from 2.3.5.8 MySQL to mojoPortal 2.3.6.7 with 2.3.6.7  mysqldatalayer.

After the no problem setup, Im trying to get to the startpage, but I get the error page and this:

2011-08-23 14:48:20,869 ERROR mojoPortal.Web.mojoBasePage - XX.XX.XX.XX-sv-SE - /default.aspx
System.InvalidCastException: Object cannot be cast from DBNull to other types.
   at System.DBNull.System.IConvertible.ToBoolean(IFormatProvider provider)
   at System.Convert.ToBoolean(Object value)
   at mojoPortal.Business.WebHelpers.CacheHelper.LoadCurrentPage()
   at mojoPortal.Business.WebHelpers.CacheHelper.GetCurrentPage()
   at mojoPortal.Web.SiteUtils.GetSkinName(Boolean allowPageOverride, Page page)
   at mojoPortal.Web.SiteUtils.GetMasterPage(Page page, SiteSettings siteSettings, Boolean allowOverride)
   at mojoPortal.Web.UI.CmsPage.SetupMasterPage()
   at mojoPortal.Web.UI.CmsPage.OnPreInit(EventArgs e)
   at System.Web.UI.Page.PerformPreInit()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-08-23 14:48:20,869 ERROR mojoPortal.Web.Global - XX.XX.XX.XX-sv-SE - /default.aspx- Referrer(none)
System.InvalidCastException: Object cannot be cast from DBNull to other types.
   at System.DBNull.System.IConvertible.ToBoolean(IFormatProvider provider)
   at System.Convert.ToBoolean(Object value)
   at mojoPortal.Business.WebHelpers.CacheHelper.LoadCurrentPage()
   at mojoPortal.Business.WebHelpers.CacheHelper.GetCurrentPage()
   at mojoPortal.Web.SiteUtils.GetSkinName(Boolean allowPageOverride, Page page)
   at mojoPortal.Web.SiteUtils.GetMasterPage(Page page, SiteSettings siteSettings, Boolean allowOverride)
   at mojoPortal.Web.UI.CmsPage.SetupMasterPage()
   at mojoPortal.Web.UI.CmsPage.OnPreInit(EventArgs e)
   at System.Web.UI.Page.PerformPreInit()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

Any clue what can be wrong?

 

Thanks in advance, Stefan

8/23/2011 10:16:05 AM
Gravatar
Total Posts 18439

Re: Cant upgrade

Hi Stefan,

When you visited the setup page did it run the upgrade scripts? Did you upload the /Setup folder in the data package for MySql?

Best,

Joe

8/23/2011 10:36:58 AM
Gravatar
Total Posts 6

Re: Cant upgrade

Hi Joe,

yes the scripts did run and it says that database is MySQL and version is 2.3.6.7.

The setup folder is uploaded, I also tried reinstalled everything for a few times.

//Stefan

8/23/2011 10:46:04 AM
Gravatar
Total Posts 18439

Re: Cant upgrade

Hi Stefan,

The error indicates a null value for a boolean field. The upgrade scripts should have populated any new fields so it should not be null.

What I would suggest is to review the upgrade scripts from 2.3.5.9 up to 2.3.6.7, they are located under /Setup/applications/mojoportal-core/SchemaUpgradeScripts/mysql

look for the fragments that would populate the new fields and run those fragments manually because it seems that somehow they did not run from the upgrade scripts as they should have. 

Actually I just reviewed all the upgrade scripts from version 2.3.5.9 to 2.3.6.7 and the following update statements exist, I would run all of these manually just in case any other new fields were not populated:

UPDATE mp_Users
SET PasswordResetGuid = '00000000-0000-0000-0000-000000000000';

UPDATE mp_Modules
SET IncludeInSearch = 1;

UPDATE mp_Modules
SET IsGlobal = 0;

UPDATE mp_Pages
SET IncludeInChildSiteMap = IncludeInSiteMap,
PubTeamId = '00000000-0000-0000-0000-000000000000';

UPDATE mp_Modules SET HeadElement = 'h2';

UPDATE mp_Pages
SET ExpandOnSiteMap = 1;

UPDATE mp_Pages
SET PublishMode = 0;

UPDATE mp_Modules
SET PublishMode = 0;

I would think that should solve it.

Hope that helps,

Joe

8/24/2011 12:05:43 AM
Gravatar
Total Posts 6

Re: Cant upgrade

Hi Joe,

it worked very well, thanks for the help!

//Stefan

8/24/2011 6:36:38 AM
Gravatar
Total Posts 18439

Re: Cant upgrade

Hi Stefan,

Glad it worked, and many thanks for the beers! Much appreciated.

Cheers,

Joe

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