Paul Crecelius wrote
I upgraded to the latest version, 4.7.0 from 4.4 I think. The upgrade went well from what I could tell. Ever since the upgrade the Account Login Module register link sends the user to a 404 error page, see below...
Is there a way to fix this?? Since the Account login Module is part of the core, I'm assuming this to be a core problem or a field in the DB wasn't changed during the upgrade. I have noticed that the Register link on the main page (not in the module) works just fine, so removing the module and making users use the link on the page is fine, but I just wanted to figure out what the deal was with the module. When I add a new Account Login Module, the same thing happens. I also noticed that the links for Register are different between the Module and the page link. If you want to check it out, go to www.movies4friends.com and see for yourself.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Home/tabid/36/ctl/Register/returnurl/ /Default.aspx
Server Error in '/' Application.
The resource cannot be found.
Ok Guys here's the fix:
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/183332/scope/posts/Default.aspx
Ok, by comparing the User skin object and the account login module I've come up with a fix. Not sure how to post bugs to Gemin ior whatever it is, but if anyone wants to fix theirs open up Admin\Authentication\Login.ascx.vb and alter the cmdRegister event. I left the original code in there commented out for comparison.
Private Sub cmdRegister_Click(ByVal sender As Object, ByVal e As EventArgs) Handles cmdRegister.Click
'If PortalSettings.UserRegistration <> PortalRegistrationType.NoRegistration Then
' If PortalSettings.UserTabId <> -1 Then
' ' user defined tab
' Response.Redirect(NavigateURL(PortalSettings.UserTabId, "", "returnurl=" & HttpUtility.UrlEncode(HttpContext.Current.Request.QueryString("returnurl"))), True)
' Else
' ' portal tab
' If PortalSettings.HomeTabId <> -1 Then
' Response.Redirect(NavigateURL(PortalSettings.HomeTabId, "Register", "returnurl=" & HttpUtility.UrlEncode(HttpContext.Current.Request.QueryString("returnurl"))), True)
' Else
' Response.Redirect(NavigateURL("Register", "returnurl=" & HttpUtility.UrlEncode(HttpContext.Current.Request.QueryString("returnurl"))), True)
' End If
' End If
'End If
If PortalSettings.UserRegistration <> PortalRegistrationType.NoRegistration Then
Dim ReturnUrl As String = HttpContext.Current.Request.RawUrl
If ReturnUrl.IndexOf("?returnurl=") <> -1 Then
ReturnUrl = ReturnUrl.Substring(0, ReturnUrl.IndexOf("?returnurl="))
End If
ReturnUrl = HttpUtility.UrlEncode(ReturnUrl)
If PortalSettings.UserTabId <> -1 Then
' user defined tab
Response.Redirect(NavigateURL(PortalSettings.UserTabId, "", "returnurl=" & ReturnUrl), True)
Else
' portal tab
If PortalSettings.HomeTabId <> -1 Then
Response.Redirect(NavigateURL(PortalSettings.HomeTabId, "Register", "returnurl=" & ReturnUrl), True)
Else
Response.Redirect(NavigateURL("Register", "returnurl=" & ReturnUrl), True)
End If
End If
End If
End Sub