the first one is a different error.
I now remember, it is a bug in DNN 8, when someone with less SQL knowledge tried to improve a stored procedure.
Please run the following statement in Host > SQL and restart your DNN:
-- DNN-8503: restore previous version of vw_Modules (tested for best Performance)
IF OBJECT_ID(N'{databaseOwner}[{objectQualifier}vw_Modules]', N'V') IS NOT NULL
DROP VIEW {databaseOwner}[{objectQualifier}vw_Modules]
GO
CREATE VIEW {databaseOwner}[{objectQualifier}vw_Modules]
AS
SELECT
M.PortalID AS [OwnerPortalID],
T.PortalID,
TM.TabID,
TM.TabModuleID,
M.ModuleID,
M.ModuleDefID,
TM.ModuleOrder,
TM.PaneName,
TM.ModuleTitle,
TM.CacheTime,
TM.CacheMethod,
TM.Alignment,
TM.Color,
TM.Border,
{databaseOwner}{objectQualifier}FilePath(TM.IconFile) AS IconFile,
M.AllTabs,
TM.Visibility,
TM.IsDeleted,
TM.Header,
TM.Footer,
M.StartDate,
M.EndDate,
TM.ContainerSrc,
TM.DisplayTitle,
TM.DisplayPrint,
TM.DisplaySyndicate,
TM.IsWebSlice,
TM.WebSliceTitle,
TM.WebSliceExpiryDate,
TM.WebSliceTTL,
M.InheritViewPermissions,
M.IsShareable,
M.IsShareableViewOnly,
MD.DesktopModuleID,
MD.DefaultCacheTime,
MC.ModuleControlID,
DM.BusinessControllerClass,
DM.IsAdmin,
DM.SupportedFeatures,
CI.ContentItemID,
CI.Content,
CI.ContentTypeID,
CI.ContentKey,
CI.Indexed,
CI.StateID,
M.CreatedByUserID,
M.CreatedOnDate,
M.LastModifiedByUserID,
M.LastModifiedOnDate,
M.LastContentModifiedOnDate,
TM.UniqueId,
TM.VersionGuid,
TM.DefaultLanguageGuid,
TM.LocalizedVersionGuid,
TM.CultureCode
FROM {databaseOwner}[{objectQualifier}ModuleDefinitions] AS MD
INNER JOIN {databaseOwner}[{objectQualifier}Modules] AS M ON MD.ModuleDefID = M.ModuleDefID
INNER JOIN {databaseOwner}[{objectQualifier}ModuleControls] AS MC ON MD.ModuleDefID = MC.ModuleDefID
INNER JOIN {databaseOwner}[{objectQualifier}DesktopModules] AS DM ON MD.DesktopModuleID = DM.DesktopModuleID
LEFT JOIN {databaseOwner}[{objectQualifier}ContentItems] AS CI ON M.ContentItemID = CI.ContentItemID
LEFT JOIN {databaseOwner}[{objectQualifier}TabModules] AS TM ON M.ModuleID = TM.ModuleID
LEFT JOIN {databaseOwner}[{objectQualifier}Tabs] AS T ON TM.TabID = T.TabID
WHERE (MC.ControlKey IS NULL)
GO