DNN 7.4.2 with Advanced URLs
When a person enters a URL in the browser to see a page on a DNN site for which they currently do not have permission to see, then DNN will normally bump them to the login page or to the login control at least.
On this site, the person will see this really long url
http://MyDomainName.com/Login?returnurl=%2fforms&error=You%20have%20been%20redirected%20to%20this%20default%20Login%20Page%20because%20the%20Login%20Page%20set%20for%20this%20website%20does%20not%20contain%20a%20valid%20DotNetNuke%20Account%20Login%20module,%20or%20the%20permissions%20have%20not%20been%20set%20correctly.
Why does the URL have all that in there?
It does let me log in.
This url refers to a page named "Login" and there IS a page named login and my Account Login module IS on that page. And, I have gone to Site Settings / Advanced Settings and designated "Login" to be the Login Page.
So the page name is correct, and the Account Login module is there as it should be. So why does the URL show that long and ugly message?
There is also an error message at the top of the page that says:
A critical error has occurred. Please check the Event Viewer for further details.
And the event viewer message says:
AbsoluteURL:
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:b61a20ab-f289-4b89-a974-f8c64e436f01
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:9VIjtKWFAUVEm2t3Rm0WyA==
Message:There is an error in your SQL at line 1: Must declare the scalar variable "@url_EID".
StackTrace:
at DotNetNuke.Modules.Reports.DataSources.DotNetNuke.DotNetNukeDataSource.ExecuteSQLReport()
at DotNetNuke.Modules.Reports.DataSources.SqlDataSourceBase.ExecuteReport(ReportInfo report, PortalModuleBase hostModule, IDictionary`2 inputParameters)
at DotNetNuke.Modules.Reports.ReportsController.ExecuteReport(ReportInfo objReport, String cacheKey, Boolean bypassCache, PortalModuleBase hostModule, Boolean& fromCache)
at DotNetNuke.Modules.Reports.ReportsController.GetSearchItems(ModuleInfo ModInfo)
at DotNetNuke.Services.Search.ModuleIndexer.GetSearchIndexItems(Int32 portalId)
That is also confusing because this seems to be referring to a parameter that a report module needs that is on a completely different page.
So the questions are,
1. How do I get the url to not have that ugly error message in it?
And
2. Why is there an error in the Event Viewer for a page and report module that no one is accessing?
(I am the only one that is accessing this site.)