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

Forums / Bugs & Issues / Event Comments Validation Error

Event Comments Validation Error

8 posts, 0 answered
  1. kevin
    kevin avatar
    16 posts
    Registered:
    30 Jan 2007
    16 Jan 2009
    Link to this post
    In an events detail view, the comment form will not submit. The validation for name and comments is not satisfied even if these fields are populated. Sitefinity version is 3.5.1747.1

    How can I disable comments on events until this issue is resolved?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    16 Jan 2009
    Link to this post
    Hi kevin,

    Thank you for using our services.

    To disable comments for EventsVieew control you need to open it in EditMode >> Advanced >> Comments >> AllowComments = FALSE

    Let us know if there is anything else that we can do for you.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    10 Feb 2010
    Link to this post
    I am using the latest 3.7 SP2 and the validation error still occurs with Events. I fill out all fields including name and comments, but the submission continues to fail saying that name and message cannot be empty.. but it is not! Submitting comments on Blogs and News works perfectly, but can't get around this for Events. Any idea on what's wrong?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    10 Feb 2010
    Link to this post
    Hello bemara57,

    Try mapping the following template for SingleItemTemplatePath of EventsView control.

    <%@ Control Language="C#" %>
    <%@ Register Assembly="Telerik.Cms.Engine" Namespace="Telerik.Cms.Engine.WebControls" TagPrefix="sfWeb" %>
    <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Web.UI.SpamProtection" TagPrefix="sfWeb" %>
     
    <telerik:CssFileLink ID="CssFileLink1" EmbeddedFileName="Telerik.Events.Resources.ControlTemplates.Frontend.eventsCommonLayout.css" FileName="" Media="screen" runat="server" />
    <telerik:JsFileLink id="jsLink" runat="server" ScriptType="jQuery" />
     
    The template is mapped
    <div class="sf_singleEvent">
        <asp:HyperLink ID="backToList1" Text="All events" CssClass="sf_back" runat="server"></asp:HyperLink>
        <h2 class="sf_eventTitle">
            <asp:Literal ID="Title" runat="server" />
        </h2>
        <asp:Image ID="Thumbnail" runat="server" />
       <div class="sf_eventBasicInfo">
            <p class='sf_eventPriod'><asp:Literal ID="Event_Start" runat="server" Text="{0}" /></p>
            <p class='sf_eventPriod'><asp:Literal ID="Event_End" runat="server" Text="{0}" /></p>
            <p class='sf_eventPriod'><asp:Literal ID="Publication_Date" runat="server" Text="{0}" /></p>
        </div>
        
            <address id="Location" runat="server" class="sf_eventLocation">
               <asp:Literal ID="Street" runat="server" Text="{0}" /><br />
               <asp:Literal ID="City" runat="server" Text="{0}" /><br />
               <asp:Literal ID="State" runat="server" Text="{0}" /><br />
               <asp:Literal ID="Country" runat="server" Text="{0}" /><br />
            </address>
       <div class="sf_eventContent">
            <asp:Literal ID="content" runat="server" />
        </div
         
        <asp:Panel ID="mapPanel" runat="server" CssClass="sf_eventMap"></asp:Panel>
       <asp:PlaceHolder ID="plhWho" runat="server">   
            <address class="sf_eventContact">       
                 
                <asp:Literal ID="Contact_Name" runat="server" Text="{0}" /><br />
               Email: <asp:Literal ID="Contact_Email" runat="server" Text="<a href='mailto:{1}'>{0}</a>" /><br />
                Phone: <asp:Literal ID="Contact_Phone" runat="server" Text="{0}" /><br />
                Cell: <asp:Literal ID="Contact_Cell" runat="server" Text="{0}" /><br />
                Website: <asp:Literal ID="Contact_Web" runat="server" Text="<a href='http://{1}'>{0}</a>" /><br />
            </address>
        </asp:PlaceHolder>
         
        <p class="sf_eventCategory" runat="server" id="plhCategory">
            <asp:HyperLink ID="Category" runat="server" />
         </p>
         <p class="sf_eventTags" runat="server" id="plhTags">
             
            <asp:Repeater ID="Tags" runat="server">
                <ItemTemplate>
                    <asp:HyperLink ID="tagLink" runat="server" />
                </ItemTemplate>
            </asp:Repeater>
        </p>
         
         
        <asp:Repeater ID="Bookmarks" runat="server">
            <HeaderTemplate><ul class="sf_socialBookmarks"></HeaderTemplate>
            <ItemTemplate>
                <li>
                    <asp:HyperLink ID="BookmarkLink" runat="server">
                        <asp:Image ID="BookmarkImage" runat="server" />
                    </asp:HyperLink>
                </li>
            </ItemTemplate>
            <FooterTemplate></ul></FooterTemplate>
        </asp:Repeater>
        
    </div>
    <sfWeb:CommentsList ID="commentsList" runat="server" CssClass="sf_contentComments"></sfWeb:CommentsList>

    Do not modify the template. Just map it. Let us know how it goes.
    You could try adding EventsView control on a single page - create a new page without any other controls on it. Try using simple master file. There could be some interaction between the controls on your page which causes problems with built-in validator.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  5. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    10 Feb 2010
    Link to this post
    Still gives the validation error. I mapped it in the ControlConfig file and saw the text "The template is mapped" you have in your code below to ensure the page is being rendered using the same file. I put it on a blank page with no other controls on it. It still continues to fail on the validation for an empty message and name.

    I even tried mapping to .sft instead of .ascx to see if its a problem with the template parser... but same results. Also I tried taking out the validationgroup from the comment control but the same problem continues. Any other ideas??
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    11 Feb 2010
    Link to this post
    Hi bemara57,

    I tried to reproduce this behavior with the latest official version of Sitefinity 3.7 SP2 Community Edition which seems you use, but everything worked correctly at my end. I am attaching several dlls that you could try to upload to your bin folder and see whether the problem will be fixed. If this does not help, please send us a sample project where we can reproduce the problem.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  7. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    12 Feb 2010
    Link to this post
    Your DLL's had the same effect- BUT I did find what the problem was!

    The problem is that the Events module has comments off by default. So when I enabled it in the web.config, this did not make it work for all existing Events that were already created in the system. They have this strange validation problem. But all new events created from this point on submit fine with no problem.

    So this leads me to another question... How do I get comments working for all existing events? Is there a comments key in the database that need to be manually created for all existing events?
  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    12 Feb 2010
    Link to this post
    Hi bemara57,

    Can you try to get all events using Events Module API perform a dummy edit on them and save them back?This should fix the issue. More information on Events Module API can be found here: http://www.sitefinity.com/help/developer-manual/events-api-overview.html.

    Greetings,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
8 posts, 0 answered