+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Forum doesn't work after upgrade from 6.0 to 6.1

Forum doesn't work after upgrade from 6.0 to 6.1

11 posts, 2 answered
  1. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    30 Jul 2013
    Link to this post
    The support said: Could you please inform us if you are having a custom membership provider? Would
    it be possible for you to try to disable it (comment it out) and test the
    behavior (if you have such provider)?

    Apparently, everybody should know what "a custom membership provider." I don't. Since it's such common knowledge, could anybody, please, share it with me? Where do I find it? What else do I have to do to make the site work after I comment it out?  thank you!
  2. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    31 Jul 2013 in reply to Inna
    Link to this post
    Chances are if you don't know much about it you're not using it.  Here is the .Net documents about membership.  If you can paste or screenshot your errors here we will be glad to help you if we can.
  3. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    31 Jul 2013 in reply to Jonathan
    Link to this post
    Thank you, Jonathan. I would love somebody to help us with it. There is not much to say - no screenshot needed. The forum control on the page displays this message: "Error parsing the template." It used to display the forum. Not sure exactly what messed up the perfectly working forum, but it stopped working after the upgrade to 6.1.

    Thank you!
  4. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    31 Jul 2013 in reply to Inna
    Link to this post
    I ran into the same issue I believe.  

    Navigate to the page with the forum widget on it.
    Edit it.
    Check which templates its using in the "Templates and Forum Parts" (screenshot)
    If you aren't using custom make the drop downs look like selected (screenshot)
    Also i believe the piece that fix it for me was un-checking the "Start with forum groups on first level"
    If that doesn't work then open each template and revert them to default, if you've done custom work on them make sure you back them up first (copy and paste to notepad)
  5. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    31 Jul 2013 in reply to Jonathan
    Link to this post
    Jonathan, thank you for trying to help me. The "Start with forum groups on first level" has been always unchecked. And here is - see attached - what happens when I try to use the "restore to default" option - all the code just disappears.

    The support people threw the following idea:

    Could you please inform us if you are having a custom membership provider? Would
    it be possible for you to try to disable it (comment it out) and test the
    behavior (if you have such provider)?

    Anyhow, I have no clue what "a custom membership provider" is and where to look for it - what file in Sitefinity has it so I could comment it out, as advised.
  6. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    31 Jul 2013 in reply to Inna
    Link to this post
    a custom membership provider would be set up in your web.config.  Didn't see that you attached anything to your last post.  

    For the templates in the drop down menus try not selecting any template to see if it works shown in my last screen shot.
  7. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    31 Jul 2013 in reply to Jonathan
    Link to this post
    Here are the images of the problem, thanks again, Jonathan!
  8. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    01 Aug 2013 in reply to Inna
    Link to this post
    Inna,

    I was able to reproduce this issue in my environment.  Here is what I did to fix it.

    Now if you have not modified the Forum widget templates it will NOT be nessacry to copy them to notepad.  But if you have made modifications to them it is VERY important you back them up.

    Once they are all restored to default hopefully it will be working again!!

    Good luck!!

    Inna
    Answered
  9. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    01 Aug 2013 in reply to Jonathan
    Link to this post
    Jonathan, thank you for not giving up. However, I still was not able to make it work. Here is what's going on:

    1. I remove the non-working control from the page and publish it.
    2. I de-activate, then activate the Forum module.
    3. I place the control back on the page.
    4. I select the templates.
    5. When I click on the first two templates "change to default" it wipes all the code out.
    The other two templates are fine. I even tried to use the code (default) from my other site - the same error - Error parsing the template
    Wondering if I can just overwrite this module with a new code...
  10. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    02 Aug 2013 in reply to Inna
    Link to this post
    Inna,

    Here is the List of Forums template default code:
    <%@ Control Language="C#" %>
     
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Fields" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Forums.Web.UI" Assembly="Telerik.Sitefinity.Forums" %>
    <%@ Register TagPrefix="sfForums" Namespace="Telerik.Sitefinity.Forums.Web.UI" Assembly="Telerik.Sitefinity.Forums" %>
     
    <%@ Import Namespace="Telerik.Sitefinity.Forums" %>
    <%@ Import Namespace="Telerik.Sitefinity.Forums.Model" %>
    <%@ Import Namespace="Telerik.Sitefinity.Localization" %>
     
    <sfForums:ForumsBreadcrumb ID="breadcrumb" runat="server">
    </sfForums:ForumsBreadcrumb>
    <h1 class="sfforumsTitle" id="forumsLiteral" runat="server">
        <asp:Literal Text="<%$Resources: ForumsResources, ForumsTitle %>" runat="server" />
    </h1>
    <telerik:RadListView ID="list" ItemPlaceholderID="ItemsContainer" runat="server"
        EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
        <layouttemplate>
            <table class="sfforumsList">
                <tbody>
                    <asp:PlaceHolder ID="ItemsContainer" runat="server" />
                </tbody>
            </table>
        </layouttemplate>
        <itemtemplate>
            <tr>
                <sf:Conditional If='<%# Eval("DataItem") is ForumGroup %>' runat="server">
                    <Then>
                        <th colspan="5" scope="colgroup" class="sfforumTitleWrp">
                            <span id="statusImageGroup" runat="server" class='<%# (bool)Eval("IsLocked") ? "sfLockedForum" : "sfNormalGroup" %>'></span>
                            <h2 class="sfforumGroupTitle">
                                <%# Eval("Title") %>
                            </h2>
                            <p class="sfforumGroupDescription">
                                <%# Eval("Description") %>
                            </p>
                        </th>
                    </Then>
                    <Else>
                        <td class="sfforumImgWrp">
                            <img width="50" height="50" src='<%# Eval("IconUrl") %>' alt="<%# Eval("Title") %>"/>
                        </td>
                        <td class="sfforumTitleWrp">
                            <span id="statusImageForum" runat="server" class='<%# (bool)Eval("IsLocked") ? "sfLockedForum" : "sfNormalForum" %>'></span>
                            <sf:DetailsViewHyperLink runat="server" DataItem='<%# Eval("DataItem") %>' TextDataField="Title"
                                CssClass="sfforumTitle" />
                            <p class="sfforumDescription"><%# Eval("Description") %></p>
                        </td>
                        <td class="sfforumThreadsCountWrp">
                            <strong class="sfforumThreadsCount"><%# Eval("ThreadsCount") %></strong>
                            <asp:Literal Text="<%$Resources: ForumsResources, Threads %>" runat="server" />
                        </td>           
                        <td class="sfforumPostsCountWrp">            
                            <strong class="sfforumPostsCount"><%# Eval("PostsCount") %></strong>
                            <asp:Literal Text="<%$Resources: ForumsResources, Posts %>" runat="server" />
                        </td>
                        <td class="sfforumLastPostWrp">
                            <sf:Conditional If='<%# Eval("LastPostNickname") != null %>' runat="server">
                            <Then>
                                <a href="<%# Eval("LastPostUrl") %>">
                                    <%# string.Format(Res.Get<ForumsResources>().LastPostByUser, Eval("LastPostNickname"))%>
                                </a>
     
                                <div class="sfforumLastPostAge">
                                    <%# Eval("LastPostAge") %>
                                </div>
                            </Then>
                            </sf:Conditional>
                        </td>
                    </Else>
                </sf:Conditional>
            </tr>
        </itemtemplate>
    </telerik:RadListView>
     
    <div class="sfforumsFilterWrp">
        <asp:Label runat="server" id="threadsFilterLabel" Text="<%$Resources:ForumsResources, ShowThreadsFromAllForums %>" CssClass="sfforumsFilterLbl" />
        <sfForums:ThreadsFilterControl id="threadsFilterControl" runat="server" class="sfthreadsFilterListWrp" />
    </div>

    Here is the list of threads default template code:

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit"
        Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sfForums" Namespace="Telerik.Sitefinity.Forums.Web.UI" Assembly="Telerik.Sitefinity.Forums" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Import Namespace="Telerik.Sitefinity.Forums" %>
    <%@ Import Namespace="Telerik.Sitefinity.Forums.Model" %>
    <sfForums:ForumsBreadcrumb ID="breadcrumb" runat="server">
    </sfForums:ForumsBreadcrumb>
    <h1 class="sfforumTitle">
        <asp:Literal runat="server" ID="forumTitle" Text=""></asp:Literal>
        <asp:Literal ID="threadsCountLiteral" runat="server" />
    </h1>
    <div id="threadsPanel" runat="server">
        <div class="sfClearfix">
            <div class="sfforumSubscribeWrp">
                <sfForums:NotificationSubscription id="notificationSubscriber" runat="server" CssClass="sfforumEmailSubscriberWrp" />
                <asp:HyperLink ID="rssLink" runat="server" Text="<%$Resources:ForumsResources, FeedForThisForum %>"
                    CssClass="sfforumRssLnk" />
            </div>
            <asp:HyperLink ID="newThreadLink" runat="server" Text="<%$Resources: ForumsResources, NewThread %>"
                CssClass="sfforumNewThreadLnk" />
            <div id="forumClosed" runat="server" class="sfClosedItm"><asp:Literal ID="forumClosedText" runat="server" Text="<%$ Resources:ForumsResources, ForumClosed %>" /></div>
        </div>
        <telerik:RadListView ID="Repeater" ItemPlaceholderID="ItemsContainer" runat="server"
            EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
            <layouttemplate>
                <table class="sfforumThreadsList">
                    <thead>
                        <tr>
                            <th class="sfforumThreadWrp" scope="col">
                                <asp:Literal ID="Literal14" runat="server" Text='<%$Resources:ForumsResources, ThreadUpperCase %>'></asp:Literal>
                            </th>
                            <th class="sfforumThreadPostsWrp" scope="col">
                                <asp:Literal ID="Literal15" runat="server" Text='<%$Resources:ForumsResources, PostsUpperCase %>'></asp:Literal>
                            </th>
                            <th class="sfforumThreadViewsWrp" scope="col">
                                <asp:Literal ID="Literal16" runat="server" Text='<%$Resources:ForumsResources, ViewsUpperCase %>'></asp:Literal>
                            </th>
                            <th class="sfforumThreadLastPostWrp" scope="col">
                                <asp:Literal ID="Literal1" runat="server" Text='<%$Resources:ForumsResources, LastPostUpperCase %>'></asp:Literal>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:PlaceHolder ID="ItemsContainer" runat="server" />
                    </tbody>
                </table>
            </layouttemplate>
            <itemtemplate>
                <tr>
                    <td class="sfforumThreadWrp">
                        <span id="statusImage" runat="server" class='<%# (bool)Eval("IsLocked") ? "sfLockedThread" : "sfNormalThread" %>'></span>
                        <div class="sfforumThreadTitleAndAgeWrp">
                            <sf:DetailsViewHyperLink runat="server" DataItem='<%# Eval("DataItem") %>' ToolTip='<%# Eval("Title") %>' CssClass="sfforumThreadTitle">
                                <span class='<%#
                                        (ForumThreadType)Eval("ThreadType") == ForumThreadType.Announcement ? "sfAnnouncmentThread"
                                        : (ForumThreadType)Eval("ThreadType") == ForumThreadType.StickOnTop ? "sfStickyThread"
                                        : "sfThread"
                                     %>'></span>
                                <%# HttpUtility.HtmlEncode(Eval("Title")) %>
                            </sf:DetailsViewHyperLink>
                            <sf:Conditional If='<%# Eval("IsAnswered") %>' runat="server">
                                    <Then>
                                         <span class="sfforumThreadAnswered">
                                         <asp:Literal Text="<%$ Resources:ForumsResources, FeaturedTitle %>" runat="server" />
                                       </span>
                                    </Then>
                                </sf:Conditional>
                            <div class="sfforumThreadAgeWrp">
                                <asp:Literal Text="<%$Resources: Labels, By %>" runat="server" />
     
                                <sf:Conditional If='<%# Eval("UserProfileUrl") == null %>' runat="server">
                                    <Then>
                                        <%# Eval("UserNickname") %>
                                    </Then>
                                    <Else>
                                        <a href='<%# Eval("UserProfileUrl") %>' class="sfforumUser">
                                            <span>
                                                <%# Eval("UserNickname") %>
                                            </span>
                                        </a>
                                    </Else>
                                </sf:Conditional>,
     
                                <%# Eval("ThreadAge") %>
                                <asp:Literal Text="<%$Resources:ForumsResources, InLabel %>" id="inLiteral" runat="server" /> <sf:DetailsViewHyperLink id="forumTitleLink" runat="server" DataItem='<%# Eval("Forum") %>' ToolTip='<%# Eval("Forum.Title") %>'>
                                <%# Eval("Forum.Title") %>
                            </sf:DetailsViewHyperLink>
                            </div>
                        </div>
                    </td>
                    <td class="sfforumThreadPostsWrp">
                        <%# Eval("PostsCount") %>
                        </td>
                    <td class="sfforumThreadViewsWrp">
                        <%# Eval("ViewsCount") %>
                    </td>
                    <td class="sfforumThreadLastPostWrp">
                        <sf:Conditional If='<%# Eval("LastPostNickname") != null %>' runat="server">
                            <Then>
                                <a href='<%# Eval("LastPostUrl") %>'>
                                    <asp:Literal Text="<%$Resources: Labels, By %>" runat="server" />
                                    <%# Eval("LastPostNickname") %>
                                </a>
     
                                <div class="sfforumThreadLastPostAge">
                                    <%# Eval("LastPostAge") %>
                                </div>
                            </Then>
                        </sf:Conditional>
                    </td>
                </tr>
            </itemtemplate>
        </telerik:RadListView>
        <sf:Pager id="pager" runat="server" />
    </div>
    <div id="noThreadsPanel" runat="server" class="sfforumNoThreadsWrp">
        <p>
            <asp:Literal ID="noThreadsLiteral" runat="server" Text='<%$Resources:ForumsResources, NoThreadsHaveBeenPostedYet %>' />
        </p>
        <asp:HyperLink ID="createFirstThread" runat="server" Text="<%$Resources: ForumsResources, PostAThread %>"
            CssClass="sfforumFirstThreadLnk" />
    </div>
    <div class="sfforumsFilterWrp">
        <asp:Label runat="server" ID="threadsFilterLabel" Text="<%$Resources:ForumsResources, ShowThreadsFromAllForums %>"
            CssClass="sfforumsFilterLbl" />
        <sfForums:ThreadsFilterControl id="threadsFilterControl" runat="server" class="sfthreadsFilterListWrp" />
    </div>

    I noticed after my upgrade the templates where vastly different.  So if restore the "default" templates doesnt work try creating new ones and copy and pasting the above code.
    Answered
  11. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    02 Aug 2013 in reply to Jonathan
    Link to this post
    Jonathan, thank you VERY much, it worked! I used your default templates and it worked! Also, do you mind sharing your templates (custom) for the forum?  I managed to accidentally wipe out all I previously created. Also, I would be anxious to use them (my old templates) anyway. Looks like they didn't work with 6.1 (although functioned just fine in 6.0). Or, did you figure out what exactly had happened? I would like to notify the support - I have submitted the ticket over a week ago, but they still didn't resolve it. Just will let them know that you were able to help me - to save them the time. Thank you again. Inna
11 posts, 2 answered