i7MEDIA / mojoportal

mojoPortal is an extensible, cross database, mobile friendly, web content management system (CMS) and web application framework written in C# ASP.NET.
https://www.mojoportal.com
Other
197 stars 100 forks source link

upgrading from <2.3.9.7 throws IndexOutOfRangeException #237

Closed JosephMDavis closed 4 months ago

JosephMDavis commented 4 months ago

The global.asax loads the SkinConfigManager in the Application_BeginRequest, which looks up the current page skin by getting the entire Page object. The Page object has some properties which didn't exist prior to 2.3.9.7.

We could update the PageSettings.cs to check for dbnull on all of these properties or we could wrap the SkinConfigManager load in global.asax in a try/catch.

A workaround is to upgrade to any version between 2.3.9.7 and 2.9.0.1 and then upgrade to 2.9.0.1.