This happens on a freshly installed Sharepoint 2013 Foundation standalone server.
I create a standard Discussion board app and add a discussion post. I enter the post, and use the "alert me" option (under the post, not in the top ribbon). I hit ok on the alert settings and get the "sorry, something went wrong" page. Doesn't matter what user tries to use the "alert me" option, same error occurs. Doesn't matter if I create a new web application or site collection, Discussion board always does this. Just to note, even though there is an error, the alert is still created.
An unexpected error has
occurred.
Web
Parts Maintenance Page: If you have permission, you can use this page to
temporarily close Web Parts or remove personal settings. For more information,
contact your site administrator.
Application error when access /Lists/tax discussion/Flat.aspx, Error=Value does not fall within the expected range.
at Microsoft.SharePoint.SPContentTypeId..ctor(String id)
at Microsoft.SharePoint.SPViewContext.get_FolderContentTypeId()
at Microsoft.SharePoint.WebControls.ViewSelectorMenu.AddMenuItems()
at Microsoft.SharePoint.WebControls.ToolBarMenuButton.CreateChildControls()
at Microsoft.SharePoint.WebControls.ViewSelectorMenu.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Microsoft.SharePoint.WebControls.TemplateBasedControl.OnLoad(EventArgs e)
at Microsoft.SharePoint.WebControls.ToolBarMenuButton.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at Microsoft.SharePoint.WebPartPages.XsltListViewWebPart.CreateChildControls()
at Microsoft.SharePoint.WebPartPages.WebPartMobileAdapter.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
System.ArgumentException: Value does not fall within the expected range.
at Microsoft.SharePoint.SPContentTypeId..ctor(String id)
at Microsoft.SharePoint.SPViewContext.get_FolderContentTypeId()
at Microsoft.SharePoint.WebControls.ViewSelectorMenu.AddMenuItems()
at Microsoft.SharePoint.WebControls.ToolBarMenuButton.CreateChildControls()
at Microsoft.SharePoint.WebControls.ViewSelectorMenu.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Microsoft.SharePoint.WebControls.TemplateBasedControl.OnLoad(EventArgs e)
at Microsoft.SharePoint.WebControls.ToolBarMenuButton.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at Microsoft.SharePoint.WebPartPages.XsltListViewWebPart.CreateChildControls()
at Microsoft.SharePoint.WebPartPages.WebPartMobileAdapter.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)