Error Me.ActiveTab = objHomeTab.Clone()

An error on a DotNetNuke website: Error Me.ActiveTab = objHomeTab.Clone()

By default the disclosure of server and site information is restricted. A fuller error can be viewed either by using a browser on the server, or by editing the web.config file.

If access can be gained to the website then as an administrator the error can be reviewed on the event log page.

Unable to gain access to the website I reviewed the error from the server. The fuller error message was:

Object reference not set to an instance of an object.
 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: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 840:                ' use the home tab ( if specified )
Line 841:                objHomeTab = objTabs.GetTab(Me.HomeTabId, PortalId, False)
Line 842:                Me.ActiveTab = objHomeTab.Clone()
Line 843:                isVerified = True
Line 844:            End If
Source File:  C:\Inetpub\wwwroot\Library\Components\Portal\PortalSettings.vb    Line: 842

The error was caused by there being no home page assigned for the portal.

To login required browser history or guessing the tabid for the home page. For example trying something like:
/Home/tabid/37/Default.aspx

Navigating to the admin/site settings the home page can be set.