Forum/Topics Pages Navigation Error

Mar 24, 2013 at 6:33 AM
I get error when ever I try to nagivate between topic pages or forum pages. Cant go to page 2 from 1 without getting the error message.

I know this is related to afpg showing twice in the url but how do we get rid of it?

/Forum/aft/63/afpg/8/afpg/8.aspx#4001
/Forum/aff/10/afpg/2/afpg/2.aspx

I am using URL Master.

I think Chris Hammond was having the same issue but I see that his forums are working fine.
http://www.sccaforums.com/forums/aff/6/afpg/2

Can anyone suggest anything to fix this?

Thanks for your time.

My errors: 1)
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9591147
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
System.Convert.ToInt32(String value) +48
DotNetNuke.Modules.ActiveForums.SettingsBase.get_PageId() +166
DotNetNuke.Modules.ActiveForums.Controls.TopicsView.OnLoad(EventArgs e) +1714

[ModuleLoadException: Error: is currently unavailable.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +401

[PageLoadException: Error: is currently unavailable.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +427
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc) +94
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +539
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc, Boolean DisplayErrorMessage) +192
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc) +40
DotNetNuke.Modules.ActiveForums.SettingsBase.RenderMessage(String Title, String Message, String ErrorMsg, Exception ex) +119
DotNetNuke.Modules.ActiveForums.SettingsBase.RenderMessage(String Message, String ErrorMsg, Exception ex) +38
DotNetNuke.Modules.ActiveForums.Controls.TopicsView.OnLoad(EventArgs e) +8053
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

[PageLoadException: Error: is currently unavailable.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +427
DotNetNuke.Framework.PageBase.OnError(EventArgs e) +630
System.Web.UI.Page.HandleError(Exception e) +86
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8422
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) +4
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

and 2)

[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9591147
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
System.Convert.ToInt32(String value) +48
DotNetNuke.Modules.ActiveForums.SettingsBase.get_PageId() +166
DotNetNuke.Modules.ActiveForums.Controls.TopicView.OnLoad(EventArgs e) +1908

[ModuleLoadException: Error: is currently unavailable.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +401

[PageLoadException: Error: is currently unavailable.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +427
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc) +94
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +539
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc, Boolean DisplayErrorMessage) +192
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc) +40
DotNetNuke.Modules.ActiveForums.SettingsBase.RenderMessage(String Title, String Message, String ErrorMsg, Exception ex) +119
DotNetNuke.Modules.ActiveForums.SettingsBase.RenderMessage(String Message, String ErrorMsg, Exception ex) +38
DotNetNuke.Modules.ActiveForums.Controls.TopicView.OnLoad(EventArgs e) +2182
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

[PageLoadException: Error: is currently unavailable.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +427
DotNetNuke.Framework.PageBase.OnError(EventArgs e) +630
System.Web.UI.Page.HandleError(Exception e) +86
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8422
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) +4
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Mar 24, 2013 at 6:52 AM
Edited Mar 24, 2013 at 6:58 AM
I think the question was how do I make the page navigation work with URL Master.

I only get that error when URL Master is enabled. However, even with URL MAster disabled, I have afpg twice in the url but some reason the correct page is displayed without any error.

Forum/tabid/644/aft/63/afpg/4/afpg/4/Default.aspx

Thanks.
Coordinator
Mar 24, 2013 at 5:11 PM
It's the double "afpg" parameter that is causing the failure. Unfortunately, there is no way to prevent that in 5.0.3.

We're going to track that down in 5.0.4
Aug 4, 2013 at 8:34 PM
Edited Aug 4, 2013 at 8:35 PM
Hi,

I encountered this issue today myself. I don't want to use the 5.0.4. beta for production use so I implemented a "hack" in the skin of one of my sites. The hack is not very SEO friendly, but it allows me to go live with AF5, DNN7, friendly url's, etc. That's my prio 1, and I can live with this hack for a while.

Here's the code. Just past it somewhere in the top section of your skin.

Hope it helps.
    Dim url As String
    Dim stringarr() As String
    Dim Occurrences As Integer = 0

    ' Get current url
    url = Request.Url.OriginalString
    
    ' Check if it's a forum page using paging (contains afpg)
    If url.ToLower.Contains("afpg") = True Then
        stringarr = url.Split("&")
        
        ' The term afpg more than one time used? 
        For Each part As String In stringarr
            If part.Contains("afpg") Then
                Occurrences = Occurrences + 1
            End If
        Next

        ' >1 ==> fix url and redirect
        If (Occurrences > 1) Then
            Dim startsecondoccurenceofafpg As Integer = url.LastIndexOf("afpg")
            url = url.Substring(0, startsecondoccurenceofafpg - 1)
            Response.Redirect(url, True)
        End If
        
    End If
Aug 5, 2013 at 6:06 PM
Why don't u want to use 5.0.4 on your production site? I am using it and I have no issues with it.
Aug 6, 2013 at 7:29 PM
I've been using 5.0.4 as well. I don't think many new problems from 5.0.3.

This problem is present in 5.0.4 I'll try your hack
Aug 6, 2013 at 7:43 PM
The double "afpg" issue has been resolved in the new available 5.0.4 version. Am I missing something?
Aug 7, 2013 at 7:25 AM
Some of my users are reporting they cannot select pages 2,3,4 etc. I am not encountering the issue and neither are a large group of users. I thought I'd try thisvfix to see if it corrects for all users.
Aug 17, 2013 at 8:00 AM
FrozenDNN wrote:
Why don't u want to use 5.0.4 on your production site? I am using it and I have no issues with it.
If 5.0.4. beta version solves this and is stable I will check this out en report the results back here.

The reason I have not yet done this was I first wanted to migrate my DNN 6.2 / ActiveSocial / ActiveForums site to DNN 7 with the DNN social modules en and the new Activeforums. Had a lot of issues in migrating, but finally got it stable (with 5.0.3) I figured I first get this to production with the hack and then try out AF 5.0.4. from there.
Sep 8, 2013 at 4:59 PM
Edited Sep 9, 2013 at 5:17 AM
Just installed the beta. Did some tests and it looked good. The new search UI is great!

In using the 5.0.3 on a 7.1 DNN install I discovered that the bug this topic starts with triggered a chain reaction on my site. The result of this chain reaction is a corrupted IIS worker thread who returns "Internal Server Error". I was hoping the bugfix for the double pager will solve this issue. But unfortunately it hasn't.